]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_captimes.mako
Fix two missed route_urls to game_finder.
[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 % else:
11
12 <div class="row">
13   <div class="span12">
14     <h3>Fastest Flag Captures by ${player.nick_html_colors()|n}</h3>
15     <p><a href="${player_url}">Back to player info page</a></p>
16  
17     <table class="table table-hover table-condensed">
18       <thead>
19         <tr>
20            <th>Game</th>
21            <th>Captime</th>
22            <th>Map</th>
23            <th>Server</th>
24            <th>Date</th>
25         </tr>
26       </thead>
27       <tbody>
28       % for ct in captimes:
29         <tr>
30           <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>
31           <td>${ct.fastest_cap.total_seconds()} seconds</td>
32           <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>
33           <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>
34           <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>
35       % endfor
36       </tbody>
37     </table>
38
39   </div>
40 </div>
41
42 % endif