From 2cd8fdca0ac34a55306faf7da630942888214740 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Fri, 27 May 2011 09:46:48 -0400 Subject: [PATCH] Use anchor links to the game info permapage to show player accuracy instead of dedicating a whole view and template to the task. --- xonstat/templates/game_info.mako | 2 +- xonstat/templates/scoreboard.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index 434d85e..739bd28 100755 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -29,7 +29,7 @@ ${scoreboard(game.game_type_cd, pgstats)} ##### ACCURACY ##### % for pgstat in pgstats: % if pgstat.player_game_stat_id in pwstats: -Accuracy for ${pgstat.nick_html_colors()}: +Accuracy for ${pgstat.nick_html_colors()}: ${accuracy(pwstats[pgstat.player_game_stat_id][0:5])}

diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index bb65223..1f9098a 100755 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -34,7 +34,7 @@ ${pgstat.score} % if pgstat.player_id > 1: -
View -- 2.39.2