]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Convert the player_captimes view.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 17 Mar 2015 22:26:07 +0000 (18:26 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 17 Mar 2015 22:26:07 +0000 (18:26 -0400)
xonstat/templates/player_captimes.mako

index 0ecdfca32d1dd7515b8451b94379e9b73654f7ff..afe2828fcaa4c9120fb04d0f19dd84edffff5b7a 100644 (file)
@@ -3,51 +3,51 @@
 <%namespace file="navlinks.mako" import="navlinks" />
 
 <%block name="navigation">
-${nav.nav('players')}
+  ${nav.nav('players')}
 </%block>
 
 <%block name="title">
-Player captimes
+  Player captimes
 </%block>
 
 % if len(captimes) == 0:
-<h2>Sorry, no caps yet. Get playing!</h2>
-<p><a href="${request.route_url('player_info', id=player.player_id)}">Back to player info page</a></p>
+  <h2>Sorry, no caps yet. Get playing!</h2>
+  <p><a href="${request.route_url('player_info', id=player.player_id)}">Back to player info page</a></p>
 % else:
 
-<div class="row">
-  <div class="span12">
-    <h3>Fastest Flag Captures by
-      <a href="${request.route_url('player_info', id=player.player_id)}">
-        ${player.nick_html_colors()|n}
-      </a>
-    </h3>
-    <table class="table table-hover table-condensed">
-      <thead>
-        <tr>
-           <th>Game</th>
-           <th>Captime</th>
-           <th>Map</th>
-           <th>Server</th>
-           <th>Date</th>
-        </tr>
-      </thead>
-      <tbody>
-      % for ct in captimes.items:
-        <tr>
-          <td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=ct.game_id)}" title="View detailed information about this game">view</a></td>
-          <td>${ct.fastest_cap.total_seconds()} seconds</td>
-          <td><a href="${request.route_url('map_info', id=ct.map_id)}" title="Go to the detail page for this map">${ct.map_name}</a></td>
-          <td><a href="${request.route_url('server_info', id=ct.server_id)}" title="Go to the detail page for this server">${ct.server_name}</a></td>
-          <td><span class="abstime" data-epoch="${ct.create_dt_epoch}" title="${ct.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${ct.create_dt_fuzzy}</span></td>
-      % endfor
-      </tbody>
-    </table>
+  <div class="row">
+    <div class="small-12 columns">
+      <h5>Fastest Flag Captures by
+        <a href="${request.route_url('player_info', id=player.player_id)}">
+          ${player.nick_html_colors()|n}
+        </a>
+      </h5>
+   
+      <table class="table-hover table-condensed">
+        <thead>
+          <tr>
+             <th class="small-2 medium-1">Game</th>
+             <th class="small-2">Captime</th>
+             <th class="small-3">Map</th>
+             <th class="show-for-medium-up small-4">Server</th>
+             <th class="show-for-medium-up small-2">Date</th>
+          </tr>
+        </thead>
+        <tbody>
+        % for ct in captimes.items:
+          <tr>
+            <td class="text-center"><a class="tiny button" href="${request.route_url('game_info', id=ct.game_id)}" title="View detailed information about this game">view</a></td>
+            <td>${ct.fastest_cap.total_seconds()} seconds</td>
+            <td><a href="${request.route_url('map_info', id=ct.map_id)}" title="Go to the detail page for this map">${ct.map_name}</a></td>
+            <td class="show-for-medium-up"><a href="${request.route_url('server_info', id=ct.server_id)}" title="Go to the detail page for this server">${ct.server_name}</a></td>
+            <td class="show-for-medium-up"><span class="abstime" data-epoch="${ct.create_dt_epoch}" title="${ct.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${ct.create_dt_fuzzy}</span></td>
+        % endfor
+        </tbody>
+      </table>
 
+    </div>
   </div>
-</div>
 
-<!-- navigation links -->
-${navlinks("player_captimes", captimes.page, captimes.last_page, player_id=player_id, search_query=request.GET)}
+  <!-- navigation links -->
+  ${navlinks("player_captimes", captimes.page, captimes.last_page, player_id=player_id, search_query=request.GET)}
 % endif