]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/map_index.mako
Use relative time everywhere, but add hover with absolute time.
[xonotic/xonstat.git] / xonstat / templates / map_index.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
4
5 <%block name="navigation">
6 ${nav.nav('maps')}
7 </%block>
8
9 <%block name="title">
10 Map Index
11 </%block>
12
13 % if not maps:
14 <h2>Sorry, no maps yet. Get playing!</h2>
15
16 % else:
17 <div class="row">
18   <div class="span6">
19     <form method="get" action="${request.route_url('search')}">
20       <input type="hidden" name="fs" />
21       <input type="text" name="map_name" />
22       <input type="submit" value="search" />
23     </form>
24     <table class="table table-bordered table-condensed">
25       <tr>
26         <th>Name</th>
27         <th>Added</th>
28       </tr>
29     % for map in maps:
30       <tr>
31         <td><a href="${request.route_url("map_info", id=map.map_id)}" title="Go to this map's info page">${map.name}</a></th>
32         <td><span title="${map.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${map.fuzzy_date()}</span></td>
33     </td>
34       </tr>
35     % endfor
36     </table>
37     % endif
38
39     <!-- navigation links -->
40     ${navlinks("map_index", maps.page, maps.last_page)}
41   </div> <!-- /span4 -->
42 </div> <!-- /row -->