]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Format duel and ctf scoreboards.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 12 Apr 2015 01:14:46 +0000 (21:14 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 12 Apr 2015 01:14:46 +0000 (21:14 -0400)
xonstat/templates/scoreboard.mako

index 3d06f95298f3630a98a089214fde756b59fb3f65..35eaca7c4f1c2de9d909a77bd9137c240aaa4b7d 100644 (file)
@@ -5,35 +5,34 @@
   % for pgstat in pgstats:
     <tr class="${pgstat.team_html_color()}">
       % if show_latency and pgstat.avg_latency is not None:
-        <td class="text-center">
+        <td class="show-for-medium-up text-center">
           ${int(round(pgstat.avg_latency))}
         </td>
       % elif show_latency:
-        <td class="text-center">-</td>
+        <td class="show-for-medium-up text-center">-</td>
       % endif
 
-      <td class="no-stretch">
+      <td class="small-5 medium-3 no-stretch">
         % if pgstat.player_id > 2:
-          <a href="${request.route_url("player_info", id=pgstat.player_id)}"
-            title="Go to the info page for this player">
-            <span class="small-2">${pgstat.nick_html_colors()|n}</span>
+          <a href="${request.route_url("player_info", id=pgstat.player_id)}" title="Go to the info page for this player">
+            ${pgstat.nick_html_colors()|n}
           </a>
         % else:
-          <span class="small-2">${pgstat.nick_html_colors()|n}</span>
+          ${pgstat.nick_html_colors()|n}
         % endif
       </td>
 
       ${scoreboard_row(game_type_cd, pgstat)}
 
       % if game_type_cd != 'cts':
-        <td class="player-score">${pgstat.score}</td>
+        <td class="small-3">${pgstat.score}</td>
       % endif
 
       % if show_elo:
         % if pgstat.elo_delta is not None:
-          <td>${round(pgstat.elo_delta,2)}</td>
+          <td class="show-for-medium-up">${round(pgstat.elo_delta,2)}</td>
         % else:
-          <td>-</td>
+          <td class="show-for-medium-up">-</td>
         % endif
       % endif
     </tr>
     % if show_latency:
       <th class="small-1">Ping</th>
     % endif
-    <th class="small-2">Nick</th>
+    <th class="small-4">Nick</th>
     <th>Kills</th>
     <th>Deaths</th>
     <th>Suicides</th>
     <th>Objectives</th>
-    <th>Score</th>
+    <th class="medium-1">Score</th>
     % if show_elo:
       <th>Elo Change</th>
     % endif
 <thead>
   <tr>
     % if show_latency:
-      <th class="small-1">Ping</th>
+      <th class="show-for-medium-up">Ping</th>
     % endif
-    <th class="small-2">Nick</th>
+    <th class="small-5 medium-3">Nick</th>
     <th>Kills</th>
-    <th>Deaths</th>
-    <th>Suicides</th>
-    <th>Score</th>
+    <th class="show-for-medium-up">Deaths</th>
+    <th class="show-for-medium-up">Suicides</th>
+    <th class="small-3">Score</th>
     % if show_elo:
-      <th>Elo Change</th>
+      <th class="show-for-medium-up">Elo Change</th>
     % endif
   </tr>
 </thead>
 <thead class="ctf ${pgstat.team_html_color()}">
   <tr>
     % if show_latency:
-      <th class="small-1">Ping</th>
+      <th class="show-for-medium-up medium-1">Ping</th>
     % endif
-    <th>Nick</th>
-    <th>Kills</th>
-    <th>Captures</th>
-    <th>Pickups</th>
-    <th title="Flag Carrier Kill">FCK</th>
-    <th>Returns</th>
-    <th>Score</th>
+    <th class="small-5 medium-3">Nick</th>
+    <th class="show-for-medium-up">Kills</th>
+    <th>Caps</th>
+    <th class="show-for-medium-up">Pickups</th>
+    <th class="show-for-medium-up" title="Flag Carrier Kill">FCK</th>
+    <th class="show-for-medium-up">Returns</th>
+    <th class="medium-1">Score</th>
     % if show_elo:
       <th>Elo Change</th>
     % endif
 % endif
 
 % if game_type_cd in 'ca' 'dm' 'duel' 'rune' 'tdm':
-  <td>${pgstat.kills}</td>
-  <td>${pgstat.deaths}</td>
-  <td>${pgstat.suicides}</td>
+  <td class="small-3">${pgstat.kills}</td>
+  <td class="show-for-medium-up">${pgstat.deaths}</td>
+  <td class="show-for-medium-up">${pgstat.suicides}</td>
 % endif
 
 % if game_type_cd == 'cq':
 % endif
 
 % if game_type_cd == 'ctf':
-  <td>${pgstat.kills}</td>
+  <td class="show-for-medium-up">${pgstat.kills}</td>
   <td>${pgstat.captures}</td>
-  <td>${pgstat.pickups}</td>
-  <td>${pgstat.carrier_frags}</td>
-  <td>${pgstat.returns}</td>
+  <td class="show-for-medium-up">${pgstat.pickups}</td>
+  <td class="show-for-medium-up">${pgstat.carrier_frags}</td>
+  <td class="show-for-medium-up">${pgstat.returns}</td>
 % endif
 
 % if game_type_cd == 'dom':