From e793d260cff838653071e120060069457ff40ef2 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 7 Feb 2012 20:43:03 -0500 Subject: [PATCH] Make accuracy information expandable. --- xonstat/templates/base.mako | 3 +- xonstat/templates/game_info.mako | 74 ++++++++++++++++++++++---------- 2 files changed, 52 insertions(+), 25 deletions(-) diff --git a/xonstat/templates/base.mako b/xonstat/templates/base.mako index 6219eb1..c421da7 100755 --- a/xonstat/templates/base.mako +++ b/xonstat/templates/base.mako @@ -17,6 +17,7 @@ padding-bottom: 40px; } + <%block name="css"> @@ -45,8 +46,6 @@ <%block name="js"> - - diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index bacc1a0..2ce6f71 100755 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -7,6 +7,14 @@ ${nav.nav('games')} +<%block name="js"> + + + + + <%block name="title"> Game Information @@ -16,29 +24,49 @@ Game Information

Sorry, that game wasn't found!

% else: -

Game Detail

-

-Played on: ${game.start_dt.strftime('%m/%d/%Y at %I:%M %p')}
-Game Type: ${game.game_type_cd}
-Server: ${server.name}
-Map: ${map.name}
-

- -##### SCOREBOARD ##### -

Scoreboard

-${scoreboard(game.game_type_cd, pgstats)} - - -##### ACCURACY ##### -

Accuracy

-% for pgstat in pgstats: -% if pgstat.player_game_stat_id in pwstats: - -Accuracy for ${pgstat.nick_html_colors()|n}: -${accuracy(pwstats[pgstat.player_game_stat_id])} -
-
+
+
+

Game Detail

+

+ Played on: ${game.start_dt.strftime('%m/%d/%Y at %I:%M %p')}
+ Game Type: ${game.game_type_cd}
+ Server: ${server.name}
+ Map: ${map.name}
+

+
+
+ +
+
+

Scoreboard

+ ${scoreboard(game.game_type_cd, pgstats)} +
+
+ +% if len(pgstats) > 0: +
+
+

Accuracy Information

+
+ % for pgstat in pgstats: + % if pgstat.player_game_stat_id in pwstats: +
+ +
+
+ ${accuracy(pwstats[pgstat.player_game_stat_id])} +
+
+
+ % endif + % endfor +
+
% endif -% endfor +
% endif -- 2.39.2