]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/map_captimes.mako
Fixing issue with long player nicks, fixes #1313
[xonotic/xonstat.git] / xonstat / templates / map_captimes.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3
4 <%block name="title">
5 Map captimes
6 </%block>
7
8
9 <div class="row">
10   <div class="span12">
11
12     <h2>${map.name}</h2>
13     <p><a href="${map_url}">Back to map info page</a></p>
14
15     <h3>Fastest flag capture times:</h3>
16
17     <table class="table table-bordered table-condensed">
18       <thead>
19         <tr>
20            <th>Game</th>
21            <th>Captime</th>
22            <th>Nick</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 class="player-nick"><span class="nick">${ct.player_nick_html|n}</span></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>