X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fsearch.mako;h=69013b0c30943555f407537d9ce08399c7897f9b;hb=13554fa40f2aa83e30cf8a7cecd93a6ab6102b6f;hp=7637a3af5f6ddd3b87fae345861ffce5ce16d318;hpb=51c42763989fcd89c3d213b897773005ce02c7b7;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/search.mako b/xonstat/templates/search.mako index 7637a3a..69013b0 100644 --- a/xonstat/templates/search.mako +++ b/xonstat/templates/search.mako @@ -3,207 +3,200 @@ <%namespace file="navlinks.mako" import="navlinks" /> <%block name="navigation"> -${nav.nav('games')} + ${nav.nav('games')} % if results == None: -<%block name="title"> -Advanced Search - - -
-
+ <%block name="title"> + Advanced Search + +
+
-
-
+ +
- - + + - -
- -
- -

+ +
+ +
+ +

+
-
- - -
- -
- -

+ + +
+ +
+ +

+
-
- - -
- -
- -

+ + +
+ +
+ +

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

Sorry, nothing found!

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

Sorry, nothing found!

+
-
- % else: - - -##### player-only results ##### -% if result_type == "player": -
-
- - - - - - - - % for player in results: - - - - % endfor -
Player IDNickJoined
${player.player_id} - ${player.nick_html_colors()|n} - ${player.joined_pretty_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": -
-
- +% 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 map in results: - - - - + + + + + % for (game, server, gmap) in results: + + + + + + % endfor
IDNameAdded
${map.map_id}${map.name} - ${map.fuzzy_date()} - - - - MapServerTime
View${gmap.name}${server.name}${game.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 + % endif - -${navlinks("search", results.page, results.last_page, search_query=query)} + + ${navlinks("search", results.page, results.last_page, search_query=query)} +
-
% endif - -<%block name="js"> -${parent.js()} - - -