From a12bbd8bbfe624fe2b8617ed463aaa5dc432f6bd Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Thu, 18 Apr 2013 21:35:03 -0400 Subject: [PATCH] Make search results look more like the index pages. --- xonstat/templates/search.mako | 140 +++++++++++++++++++++------------- 1 file changed, 85 insertions(+), 55 deletions(-) diff --git a/xonstat/templates/search.mako b/xonstat/templates/search.mako index 778e46c..f105436 100644 --- a/xonstat/templates/search.mako +++ b/xonstat/templates/search.mako @@ -95,80 +95,110 @@ Advanced Search % else: -
-
##### player-only results ##### % if result_type == "player": - - - - - - % for player in results: - - - - - % endfor -
PlayerJoined
${player.nick_html_colors()|n}${player.joined_pretty_date()}
+
+
+ + + + + + + + % 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 -
ServerCreated
${server.name}${server.fuzzy_date()}
+
+
+ + + + + + + + % 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 -
MapAdded
${map.name}${map.fuzzy_date()}
+
+
+ + + + + + + + % 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()}
+
+
+ + + + + + + + % 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 -- 2.39.2