]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_captimes.mako
Some fixing up in the "captimes" pages
[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 <div class="row">
9   <div class="span12">
10
11     <h2><span class="nick">${player.nick_html_colors()|n}</span></h2>
12     <p><a href="${player_url}">Back to player info page</a></p>
13
14     <h3>Fastest flag capture times:</h3>
15
16     <table class="table table-hover table-condensed">
17       <thead>
18         <tr>
19            <th>Game</th>
20            <th>Captime</th>
21            <th>Map</th>
22            <th>Server</th>
23            <th>Date</th>
24         </tr>
25       </thead>
26       <tbody>
27       % for ct in captimes:
28         <tr>
29           <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>
30           <td>${ct.fastest_cap.total_seconds()} seconds</td>
31           <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>
32           <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>
33           <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>
34       % endfor
35       </tbody>
36     </table>
37
38   </div>
39 </div>