-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
32 lines (32 loc) · 975 Bytes
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<title>{{query}}: search results</title>
</head>
<body>
<form action='/search' method='get'>
<input type='text' name='query'/>
<input type='submit' value='search'/>
</form>
<h2>Results:</h2>
<h3>Corps:</h3>
<ol>
{% for i in j['corporations'] %}
<li><a href="corporation/{{i['corporation_id']}}">{{i['corporation_name']}}</a></li>
{% end %}
</ol>
<h3>Alliances:</h3>
<ol>
{% for i in j['alliances'] %}
<li><a href="alliance/{{i['alliance_id']}}">{{i['alliance_name']}}</a></li>
{% end %}
</ol>
<h3>Characters:</h3>
<ol>
{% for i in j['characters'] %}
<li><a href="character/{{i['character_id']}}">{{i['character_name']}}</a></li>
{% end %}
</ol>
</body>
</html>