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')} + + % if results == None: -
- - Nick:
- -
-% endif -% if result_type == "player": - - - - - - % for player in results: - - - - - % endfor -
PlayerJoined
${player.nick_html_colors()|n}${player.joined_pretty_date()}
+ <%block name="title"> + Advanced Search + + +
+
+ +
+
+ + + + + +
+ +
+ +

+
+
+ + +
+ +
+ +

+
+
+ + +
+ +
+ +

+
+
+ + +
+ +
+ + + + +
+
+ + +
+ +
+ +
+
+ +
+
+ +
+
+ + +% elif len(results) == 0: +
+
+

Sorry, nothing found!

+
+
+ +% else: + + ##### player-only results ##### + % if result_type == "player": +
+
+ + + + + + + + % for player in results: + + + + % endfor +
IDNickJoined
${player.player_id} + ${player.nick_html_colors()|n} + ${player.fuzzy_date()} + + + + +
+ % endif + + ##### server-only results ##### + % if result_type == "server": +
+
+ + + + + + + + % for server in results: + + + + + + % endfor +
IDNameAdded
${server.server_id}${server.name} + ${server.fuzzy_date()} + + + +
+ % endif + + ##### map-only results ##### + % if result_type == "map": +
+
+ + + + + + + + % for map in results: + + + + + + % endfor +
IDNameAdded
${map.map_id}${map.name} + ${map.fuzzy_date()} + + + +
+ % endif + + ##### game results ##### + % if result_type == "game": +
+
+ + + + + + + + % for (game, server, gmap) in results: + + + + + + + % endfor +
MapServerTime
View${gmap.name}${server.name}${game.fuzzy_date()}
+ % endif + + + ${navlinks("search", results.page, results.last_page, search_query=query)} +
+
% endif