]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Clean up scoreboard and accuracy info for CTS.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 26 Jan 2013 17:12:10 +0000 (12:12 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 26 Jan 2013 17:12:10 +0000 (12:12 -0500)
xonstat/templates/game_info.mako
xonstat/templates/scoreboard.mako

index 12f8c2306c8d39440ee06f539a8f37f635acb701..b067cfe838cf68372b7d35b4eac43466ae1233ba 100644 (file)
@@ -87,7 +87,7 @@ Game Information
 % endif
 
 
-% if len(pgstats) > 0:
+% if len(pgstats) > 0 and len(pwstats) > 0:
 <div class="row">
   <div class="span12">
     <h3>Accuracy Information</h3>
index c92f1093d19b13cba1af35b649034c7e52b77dab..d5d04b39562fd071acde28324beee203f3cbbd75 100644 (file)
@@ -22,7 +22,9 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
       <td></td>
       % endif
       ${scoreboard_row(game_type_cd, pgstat)}
+      % if game_type_cd != 'cts':
       <td>${pgstat.score}</td>
+      % endif
       % if show_elo:
         % if pgstat.elo_delta is not None:
         <td>${round(pgstat.elo_delta,2)}</td>
@@ -94,6 +96,19 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
     </thead>
 % endif
 
+% if game_type_cd == 'cts':
+    <thead>
+    <tr>
+      <th class="nick">Nick</th>
+      % if show_latency:
+      <th class="ping">Ping</th>
+      % endif
+      <th class="fastest">Fastest Lap</th>
+      <th class="deaths">Deaths</th>
+    </tr>
+    </thead>
+% endif
+
 % if game_type_cd == 'ctf':
     <thead class="ctf ${pgstat.team_html_color()}">
     <tr>
@@ -155,6 +170,11 @@ ${scoreboard_header(game_type_cd, pgstats[0])}
         <td>${pgstat.drops}</td>
 % endif
 
+% if game_type_cd == 'cts':
+        <td>${pgstat.fastest}</td>
+        <td>${pgstat.deaths}</td>
+% endif
+
 % if game_type_cd == 'ctf':
         <td>${pgstat.kills}</td>
         <td>${pgstat.captures}</td>