]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Add nb support to the scoreboard.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 1 Feb 2013 20:49:42 +0000 (15:49 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 1 Feb 2013 20:49:42 +0000 (15:49 -0500)
xonstat/templates/scoreboard.mako

index 4048955ddeaf459a5e487c0ce2d9889ab4c63272..3bcf31fa4ba8c1a3d3b14f81ec431fa615edbf1e 100644 (file)
@@ -208,6 +208,23 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
     </thead>
 % endif
 
+% if game_type_cd in 'nb' 'nexball':
+    <thead class="nb ${pgstat.team_html_color()}">
+    <tr>
+      <th class="nick">Nick</th>
+      % if show_latency:
+      <th class="ping">Ping</th>
+      % endif
+      <th class="goals">Goals</th>
+      <th class="faults">Faults</th>
+      <th class="score">Score</th>
+      % if show_elo:
+      <th>Elo Change</th>
+      % endif
+    </tr>
+    </thead>
+% endif
+
 </%def>
 
 ##### SCOREBOARD ROWS #####
@@ -277,4 +294,9 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
         <td>${pgstat.carrier_kills}</td>
 % endif
 
+% if game_type_cd in 'nb' 'nexball':
+        <td>${pgstat.captures}</td>
+        <td>${pgstat.drops}</td>
+% endif
+
 </%def>