From: Ant Zucaro <azucaro@gmail.com>
Date: Wed, 8 Feb 2012 02:01:00 +0000 (-0500)
Subject: Remove quick links to accuracy info.
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=82494f46ae62f9a3d877db0011db6f8c274c8a7a;p=xonotic%2Fxonstat.git

Remove quick links to accuracy info.
---

diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako
index 2ce6f71..4d16a92 100755
--- a/xonstat/templates/game_info.mako
+++ b/xonstat/templates/game_info.mako
@@ -37,7 +37,7 @@ Game Information
 </div>
 
 <div class="row">
-  <div class="span12">
+  <div class="span12 game">
     <h3>Scoreboard</h3>
     ${scoreboard(game.game_type_cd, pgstats)}
   </div>
@@ -52,11 +52,11 @@ Game Information
     % if pgstat.player_game_stat_id in pwstats:
       <div class="accordion-group">
         <div class="accordion-heading">
-          <a class="accordion-toggle" data-toggle="collapse" data-parent="#acc-accordion" href="#${pgstat.player_game_stat_id}">
+          <a class="accordion-toggle" data-toggle="collapse" data-parent="#acc-accordion" href="#accuracy-${pgstat.player_game_stat_id}">
           Accuracy for ${pgstat.nick_html_colors()|n}
           </a>
         </div>
-        <div id="${pgstat.player_game_stat_id}" class="accordion-body collapse in">
+        <div id="accuracy-${pgstat.player_game_stat_id}" class="accordion-body collapse in">
           <div class="accordion-inner">
             ${accuracy(pwstats[pgstat.player_game_stat_id])}
           </div>
diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako
index 148f795..288e271 100755
--- a/xonstat/templates/scoreboard.mako
+++ b/xonstat/templates/scoreboard.mako
@@ -16,14 +16,6 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
       </td>
     ${scoreboard_row(game_type_cd, pgstat)}
       <td>${pgstat.score}</td>
-      <td>
-      % if pgstat.player_id > 1:
-        <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>
-      % endif
-      </td>
     </tr>
   % endfor
   </tbody>
@@ -40,7 +32,6 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
       <th class="deaths">Deaths</th>
       <th class="suicides">Suicides</th>
       <th class="score">Score</th>
-      <th class="accuracy">Accuracy</th>
     </tr>
     </thead>
 % endif
@@ -55,7 +46,6 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
       <th class="fck" title="Flag Carrier Kill">FCK</th>
       <th class="returns">Returns</th>
       <th class="score">Score</th>
-      <th class="accuracy">Accuracy</th>
     </tr>
     </thead>
 % endif
@@ -66,7 +56,6 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
       <th class="nick">Nick</th>
       <th class="kills">Kills</th>
       <th class="score">Score</th>
-      <th class="accuracy">Accuracy</th>
     </tr>
     </thead>
 % endif
@@ -79,7 +68,6 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
       <th class="deaths">Deaths</th>
       <th class="suicides">Suicides</th>
       <th class="score">Score</th>
-      <th class="accuracy">Accuracy</th>
     </tr>
     </thead>
 % endif