]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/map_top_servers.mako
Merge pull request #31 from antzucaro/piwik
[xonotic/xonstat.git] / xonstat / templates / map_top_servers.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 Top Server Index
10 </%block>
11
12 % if not top_servers and last is not None:
13   <h2 class="text-center">Sorry, no more servers!</h2>
14
15 % elif not top_servers and last is None:
16   <h2 class="text-center">No servers 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">Server</th>
26             <th class="small-3">Games</th>
27           </tr>
28         </thead>
29         <tbody>
30         % for ts in top_servers:
31           <tr>
32             <td>${ts.rank}</td>
33             <td class="no-stretch"><a href="${request.route_url('server_info', id=ts.server_id)}" title="Go to the server info page for this server">${ts.server_name}</a></td>
34             <td>${ts.games}</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></p>
40     </div>
41   </div>
42
43   % if len(top_servers) == 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('map_top_servers', id=map_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