Remove Persona since it was shut down. :(
[xonotic/xonstat.git] / xonstat / templates / top_servers_index.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   Active Servers Index
10 </%block>
11
12 % if not top_servers and start is not None:
13   <h2 class="text-center">Sorry, no more servers!</h2>
14
15 % elif not top_servers and start is None:
16   <h2 class="text-center">No active servers 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">Server</th>
27             <th class="small-3">Games</th>
28           </tr>
29         </thead>
30         <tbody>
31         % for ts in top_servers:
32           <tr>
33             <td>${ts.sort_order}</td>
34             <td class="no-stretch"><a href="${request.route_url('server_info', id=ts.server_id)}" title="Go to the server info page for ${ts.server_name}">${ts.server_name}</a></td>
35             <td>${ts.games}</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_servers) == 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_servers_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