]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Add keepaway support to the scoreboard.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 27 Jan 2013 03:26:57 +0000 (22:26 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 27 Jan 2013 03:26:57 +0000 (22:26 -0500)
xonstat/templates/scoreboard.mako

index ced81543286cab7679317c9d5de8eb241986bd57..c26cec66e29d9c9f5bd175e536341258b2977d09 100644 (file)
@@ -165,6 +165,26 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
     </tr>
     </thead>
 % endif
+
+% if game_type_cd in 'ka' 'keepaway':
+    <thead>
+    <tr>
+      <th class="nick">Nick</th>
+      % if show_latency:
+      <th class="ping">Ping</th>
+      % endif
+      <th class="kills">Kills</th>
+      <th class="deaths">Deaths</th>
+      <th class="pickups">Pickups</th>
+      <th class="bctime">BC Time</th>
+      <th class="bckills">BC Kills</th>
+      % if show_elo:
+      <th>Elo Change</th>
+      % endif
+    </tr>
+    </thead>
+% endif
+
 </%def>
 
 ##### SCOREBOARD ROWS #####
@@ -214,4 +234,13 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
         <td>${pgstat.deaths}</td>
         <td>${pgstat.revivals}</td>
 % endif
+
+% if game_type_cd in 'ka' 'keepaway':
+        <td>${pgstat.kills}</td>
+        <td>${pgstat.deaths}</td>
+        <td>${pgstat.pickups}</td>
+        <td>${pgstat.time}</td>
+        <td>${pgstat.fckills}</td>
+% endif
+
 </%def>