]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Use anchor links to the game info permapage to show player accuracy instead of dedica...
authorAnt Zucaro <azucaro@gmail.com>
Fri, 27 May 2011 13:46:48 +0000 (09:46 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 27 May 2011 13:46:48 +0000 (09:46 -0400)
xonstat/templates/game_info.mako
xonstat/templates/scoreboard.mako

index 434d85e7d4e6ec4281b4a7eb835614eba8162b1a..739bd28fd1aeeff9ee0f1fade1a8a8c01bf1b2f8 100755 (executable)
@@ -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()}:
+<a name="accuracy-${pgstat.player_game_stat_id}" />Accuracy for ${pgstat.nick_html_colors()}:
 ${accuracy(pwstats[pgstat.player_game_stat_id][0:5])}
 <br />
 <br />
index bb652236ccbf06e34e997b2cff98f003ee458c48..1f9098a29416ddada9ed94cde6261198a3e95e62 100755 (executable)
@@ -34,7 +34,7 @@
         <td><span style="color:#FFFF00;">${pgstat.score}</span></td>
         <td>
         % if pgstat.player_id > 1:
-          <a href="${request.route_url("player_weapon_stats", game_id=pgstat.game_id, pgstat_id=pgstat.player_game_stat_id)}"
+          <a href="${request.route_url("game_info", id=pgstat.game_id)}#accuracy-${pgstat.player_game_stat_id}"
            title="View weapon accuracy details for this player in this game">
           View
           </a>