Highlight the filtered game mode.
[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">
33             % if rg.player_id > 2:
34             <a href="${request.route_url('player_info', id=rg.player_id)}" title="Go to the player info page for this player">${rg.nick_html_colors|n}</a>
35             % else:
36             ${rg.nick_html_colors|n}
37             % endif
38           </td>
39           <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>
40           <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>
41       % endfor
42       </tbody>
43     </table>
44
45   </div>
46 </div>