]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Add cq support to the scoreboard.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 26 Jan 2013 15:44:31 +0000 (10:44 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 26 Jan 2013 15:44:31 +0000 (10:44 -0500)
xonstat/templates/scoreboard.mako

index 58f00eb69feddfb7596be7c27dee634484ea0a0c..c92f1093d19b13cba1af35b649034c7e52b77dab 100644 (file)
@@ -75,6 +75,25 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
     </thead>
 % endif
 
+% if game_type_cd == 'cq':
+    <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="captured">Captured</th>
+      <th class="released">Released</th>
+      <th class="score">Score</th>
+      % if show_elo:
+      <th>Elo Change</th>
+      % endif
+    </tr>
+    </thead>
+% endif
+
 % if game_type_cd == 'ctf':
     <thead class="ctf ${pgstat.team_html_color()}">
     <tr>
@@ -129,6 +148,13 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
         <td>${pgstat.suicides}</td>
 % endif
 
+% if game_type_cd == 'cq':
+        <td>${pgstat.kills}</td>
+        <td>${pgstat.deaths}</td>
+        <td>${pgstat.captures}</td>
+        <td>${pgstat.drops}</td>
+% endif
+
 % if game_type_cd == 'ctf':
         <td>${pgstat.kills}</td>
         <td>${pgstat.captures}</td>