X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fsearch.mako;h=69013b0c30943555f407537d9ce08399c7897f9b;hb=e9a2749acba912de98b68328a51a32045a604b5d;hp=7520caaa3060aef24c6011870a15d9707fe4170a;hpb=0088e65a7148fa3f06ce7ddbdf848beddca7c016;p=xonotic%2Fxonstat.git
diff --git a/xonstat/templates/search.mako b/xonstat/templates/search.mako
index 7520caa..69013b0 100644
--- a/xonstat/templates/search.mako
+++ b/xonstat/templates/search.mako
@@ -1,22 +1,202 @@
+<%inherit file="base.mako"/>
+<%namespace name="nav" file="nav.mako" />
+<%namespace file="navlinks.mako" import="navlinks" />
+
+<%block name="navigation">
+ ${nav.nav('games')}
+%block>
+
% if results == None:
-
-% endif
-% if result_type == "player":
-
-
- Player |
- Joined |
-
- % for player in results:
-
- ${player.nick_html_colors()|n} |
- ${player.joined_pretty_date()} |
-
- % endfor
-
+ <%block name="title">
+ Advanced Search
+ %block>
+
+
+
+
+% elif len(results) == 0:
+
+
+
Sorry, nothing found!
+
+
+
+% else:
+
+ ##### player-only results #####
+ % if result_type == "player":
+
+
+
+ % endif
+
+ ##### server-only results #####
+ % if result_type == "server":
+
+
+
+
+ ID |
+ Name |
+ Added |
+ |
+
+ % for server in results:
+
+ ${server.server_id} |
+ ${server.name}
+ | ${server.fuzzy_date()} |
+
+
+
+
+ |
+
+ % endfor
+
+ % endif
+
+ ##### map-only results #####
+ % if result_type == "map":
+
+
+
+
+ ID |
+ Name |
+ Added |
+ |
+
+ % for map in results:
+
+ ${map.map_id} |
+ ${map.name}
+ | ${map.fuzzy_date()} |
+
+
+
+
+ |
+
+ % endfor
+
+ % endif
+
+ ##### game results #####
+ % if result_type == "game":
+
+
+
+ % endif
+
+
+ ${navlinks("search", results.page, results.last_page, search_query=query)}
+
+
% endif