From: Ant Zucaro Date: Fri, 27 May 2011 13:46:48 +0000 (-0400) Subject: Use anchor links to the game info permapage to show player accuracy instead of dedica... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2cd8fdca0ac34a55306faf7da630942888214740;p=xonotic%2Fxonstat.git Use anchor links to the game info permapage to show player accuracy instead of dedicating a whole view and template to the task. --- 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