]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/server_top_maps.mako
Remove the try-catch block here. It isn't needed.
[xonotic/xonstat.git] / xonstat / templates / server_top_maps.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3
4 <%block name="navigation">
5   ${nav.nav('servers')}
6 </%block>
7
8 <%block name="title">
9   Server Top Map Index
10 </%block>
11
12 % if not top_maps and last is not None:
13   <h2 class="text-center">Sorry, no more maps!</h2>
14
15 % elif not top_maps and last is None:
16   <h2 class="text-center">No maps found. Yikes, get playing!</h2>
17
18 % else:
19   <div class="row">
20     <div class="small-12 large-6 large-offset-3 columns">
21       <table class="table-hover table-condensed">
22         <thead>
23           <tr>
24             <th class="small-2">#</th>
25             <th class="small-7">Map</th>
26             <th class="small-3">Times Played</th>
27           </tr>
28         </thead>
29         <tbody>
30         % for tm in top_maps:
31           <tr>
32             <td>${tm.rank}</td>
33             <td class="no-stretch"><a href="${request.route_url('map_info', id=tm.map_id)}" title="Go to the map info page for this map">${tm.name|n}</a></td>
34             <td>${tm.times_played}</td>
35           </tr>
36         % endfor
37         </tbody>
38       </table>
39       <p class="text-center"><small>Note: these figures are from the past ${lifetime} days</small>
40     </div>
41   </div>
42
43   % if len(top_maps) == 20:
44     <div class="row">
45       <div class="small-12 large-6 large-offset-3 columns">
46         <ul class="pagination">
47           <li>
48             <a  href="${request.route_url('server_top_maps', id=server_id, _query=query)}" name="Next Page">Next <i class="fa fa-arrow-right"></i></a>
49           </li>
50         </ul>
51       </div>
52     </div>
53   % endif
54
55 % endif