]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_captimes.mako
Tidy up a few things
[xonotic/xonstat.git] / xonstat / templates / player_captimes.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3
4 <%block name="title">
5 Player captimes
6 </%block>
7
8 % if len(captimes) == 0:
9 <h2>Sorry, no caps yet. Get playing!</h2>
10 <p><a href="${player_url}">Back to player info page</a></p>
11 % else:
12
13 <div class="row">
14   <div class="span12">
15     <h3>Fastest Flag Captures by
16       <a href="${request.route_url('player_info', id=player.player_id)}">
17         ${player.nick_html_colors()|n}
18       </a>
19     </h3>
20  
21     <table class="table table-hover table-condensed">
22       <thead>
23         <tr>
24            <th>Game</th>
25            <th>Captime</th>
26            <th>Map</th>
27            <th>Server</th>
28            <th>Date</th>
29         </tr>
30       </thead>
31       <tbody>
32       % for ct in captimes:
33         <tr>
34           <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>
35           <td>${ct.fastest_cap.total_seconds()} seconds</td>
36           <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>
37           <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>
38           <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       % endfor
40       </tbody>
41     </table>
42
43   </div>
44 </div>
45
46 % endif