]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/player_captimes.mako
Initial player damage view.
[xonotic/xonstat.git] / xonstat / templates / player_captimes.mako
index 96d8ff709cbdbef0f8a370940c2f4413c45643ae..a9872e4a51873466f7b5fb47433c800d50b1bf37 100644 (file)
@@ -5,20 +5,24 @@
 Player captimes
 </%block>
 
+% if len(captimes) == 0:
+<h2>Sorry, no caps yet. Get playing!</h2>
+<p><a href="${player_url}">Back to player info page</a></p>
+% else:
+
 <div class="row">
   <div class="span12">
-
-    <h2><span class="nick">${player.nick_html_colors()|n}</span></h2>
-    <p><a href="${player_url}">Back to player info page</a></p>
-
-    <h3>Fastest flag capture times:</h3>
-
-    <table class="table table-bordered table-condensed">
+    <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>Nick</th>
            <th>Map</th>
            <th>Server</th>
            <th>Date</th>
@@ -29,7 +33,6 @@ Player captimes
         <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><span class="nick">${ct.html_nick|n}</span></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>
@@ -39,3 +42,5 @@ Player captimes
 
   </div>
 </div>
+
+% endif