From 7edf51f6cc472524d10ca7577cc6514c008b7965 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 5 Feb 2012 00:13:58 -0500 Subject: [PATCH] Gridify the map info page. --- xonstat/templates/map_info.mako | 178 ++++++++++++++++---------------- 1 file changed, 87 insertions(+), 91 deletions(-) diff --git a/xonstat/templates/map_info.mako b/xonstat/templates/map_info.mako index f4f5b45..9bed031 100755 --- a/xonstat/templates/map_info.mako +++ b/xonstat/templates/map_info.mako @@ -8,7 +8,7 @@ ${nav.nav('maps')} <%block name="title"> % if gmap: -Map Information for ${gmap.name} +Map Information % endif ${parent.title()} @@ -19,138 +19,134 @@ ${parent.title()}

Sorry, that map wasn't found!

% else: -

Map Detail - ${gmap.name}

+
+
+

${gmap.name}

-##### RECENT GAMES ##### -

Recent Games

- - +

Recent Games

+
+ - - - - + + + + - - - % for (game, srv, map, pgstat) in recent_games: + + + % for (game, srv, map, pgstat) in recent_games: % if game != '-': - - - - + + + + ${pgstat.nick_html_colors()|n} + % else: - ${pgstat.nick_html_colors()|n} + ${pgstat.nick_html_colors()|n} + % endif % else: - - - - + + + + % endif % endfor - -
Game #TypeTimeWinnerGame #TypeTimeWinner
${game.game_id}${game.game_type_cd}${game.start_dt.strftime('%m/%d/%Y %H:%M')} + ${game.game_id}${game.game_type_cd}${game.start_dt.strftime('%m/%d/%Y %H:%M')} % if pgstat.player_id > 2: - ${pgstat.nick_html_colors()|n}
--------
+ + +
+
-##### TOP SCORERS ##### -
-

Top Scoring Players

- - +
+
+

Top Scoring Players

+
+ - - - + + + - - - <% i = 1 %> - % for (score_player_id, score_nick, score_value) in top_scorers: + + + <% i = 1 %> + % for (score_player_id, score_nick, score_value) in top_scorers: - - % if score_player_id != '-': - - % else: - - % endif - + + % if score_player_id != '-': + + % else: + + % endif + <% i = i+1 %> - % endfor - -
#NickScore#NickScore
${i}${score_nick|n}${score_nick}${score_value}${i}${score_nick|n}${score_nick}${score_value}
-
+ % endfor + + + -##### TOP PLAYERS ##### -
-

Most Active Players

- +
+

Most Active Players

+
- - - - - + + + + + <% i = 1 %> % for (player_id, nick, alivetime) in top_players: - - - % if player_id != '-': - - % else: - - % endif - - - <% i = i+1 %> + + + % if player_id != '-': + + % else: + + % endif + + + <% i = i+1 %> % endfor -
#NickPlaying Time
#NickPlaying Time
${i}${nick|n}${nick}${alivetime}
${i}${nick|n}${nick}${alivetime}
+
-##### TOP SERVERS ##### -
-

Most Active Servers

- +
+

Most Active Servers

+
- - - - - + + + + + <% i = 1 %> % for (server_id, name, times_played) in top_servers: - - - - - - <% i = i+1 %> + + + + + + <% i = i+1 %> % endfor
#NameTimes Played
#NameTimes Played
${i}${name}${times_played}
${i}${name}${times_played}
+ % endif -- 2.39.2