]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/top_maps_index.mako
4a8f35810b86d9ae0870b99cf86681f0d62c843e
[xonotic/xonstat.git] / xonstat / templates / top_maps_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   Active Maps Index
10 </%block>
11
12 % if not top_maps and start is not None:
13   <h2 class="text-center">Sorry, no more maps!</h2>
14
15 % elif not top_maps and start is None:
16   <h2 class="text-center">No active maps found. Yikes, get playing!</h2>
17
18 % else:
19 ##### ACTIVE SERVERS #####
20   <div class="row">
21     <div class="small-12 large-6 large-offset-3 columns">
22       <table class="table-hover table-condensed">
23         <thead>
24           <tr>
25             <th class="small-2">#</th>
26             <th class="small-7">Map</th>
27             <th class="small-3">Games</th>
28           </tr>
29         </thead>
30         <tbody>
31         % for tm in top_maps:
32           <tr>
33             <td>${tm.sort_order}</td>
34             <td class="no-stretch"><a href="${request.route_url('map_info', id=tm.map_id)}" title="Go to the map info page for ${tm.map_name}">${tm.map_name}</a></td>
35             <td>${tm.sort_order}</td>
36           </tr>
37         % endfor
38         </tbody>
39       </table>
40       <p class="text-center"><small>Note: these figures are from the past 7 days</small>
41     </div>
42   </div>
43
44 % if len(top_maps) == 20:
45 <div class="row">
46   <div class="small-12 large-6 large-offset-3 columns">
47     <ul class="pagination">
48       <li>
49         <a href="${request.route_url('top_maps_index', _query=query)}" name="Next Page">Next <i class="fa fa-arrow-right"></i></a>
50       </li>
51     </ul>
52   </div>
53 </div>
54 % endif
55
56 % endif