Remove Persona since it was shut down. :(
[xonotic/xonstat.git] / xonstat / templates / map_index.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3
4 <%block name="navigation">
5   ${nav.nav('maps')}
6 </%block>
7
8 <%block name="title">
9   Map Index
10 </%block>
11
12 % if not maps and last is not None:
13   <h2 class="text-center">Sorry, no more maps!</h2>
14
15 % elif not maps:
16   <h2 class="text-center">Sorry, no maps yet. Get playing!</h2>
17
18 % else:
19   <div class="row">
20     <div class="small-12 large-6 large-offset-3 columns">
21
22       <form method="get" action="${request.route_url('search')}">
23         <div class="row">
24           <div class="small-7 columns">
25             <input type="hidden" name="fs" />
26             <input type="text" name="map_name" />
27           </div>
28           <div class="small-5 columns">
29             <input type="submit" value="search" />
30           </div>
31         </div>
32       </form>
33
34       <table class="table-hover table-condensed">
35         <thead>
36           <tr>
37             <th class="small-3">ID</th>
38             <th class="small-5">Name</th>
39             <th class="small-3">Added</th>
40             <th class="small-1"></th>
41           </tr>
42         </thead>
43       % for map in maps:
44         <tr>
45           <td>${map.map_id}</td>
46           <td class="no-stretch"><a href="${request.route_url("map_info", id=map.map_id)}" title="Go to this map's info page">${map.name}</a></th>
47           <td><span class="abstime" data-epoch="${map.epoch()}" title="${map.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${map.fuzzy_date()}</span></td>
48            <td class="text-center">
49             <a href="${request.route_url("game_index", _query={'map_id':map.map_id})}" title="View recent games on this map">
50               <i class="fa fa-list"></i>
51             </a>
52           </td>
53       </td>
54         </tr>
55       % endfor
56       </table>
57
58       % if len(maps) == 20:
59         <div class="row">
60           <div class="small-12 columns">
61             <ul class="pagination">
62               <li>
63                 <a  href="${request.route_url('map_index', _query=query)}" name="Next Page">Next <i class="fa fa-arrow-right"></i></a>
64               </li>
65             </ul>
66           </div>
67         </div>
68       % endif
69
70     </div> <!-- /span4 -->
71   </div> <!-- /row -->
72 % endif