Remove Persona since it was shut down. :(
[xonotic/xonstat.git] / xonstat / templates / server_index.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
4
5 <%block name="navigation">
6   ${nav.nav('servers')}
7 </%block>
8
9 <%block name="title">
10   Server Index
11 </%block>
12
13 % if not servers:
14   <h2>Sorry, no servers yet. Get playing!</h2>
15
16 % else:
17   <div class="row">
18     <div class="small-12 large-8 large-offset-2 columns">
19
20       <form method="get" action="${request.route_url('search')}">
21         <div class="row">
22           <div class="small-7 columns">
23             <input type="hidden" name="fs" />
24             <input type="text" name="server_name" />
25           </div>
26           <div class="small-5 columns">
27             <input type="submit" value="search" />
28           </div>
29         </div>
30       </form>
31
32       <table class="table-hover table-condensed">
33         <thead>
34           <tr>
35             <th class="small-3">Server ID</th>
36             <th class="small-5">Name</th>
37             <th class="small-3">Added</th>
38             <th class="small-1"></th>
39           </tr>
40         </thead>
41       % for server in servers:
42         <tr>
43           <td>${server.server_id}</td>
44           <td class="no-stretch"><a href="${request.route_url("server_info", id=server.server_id)}" title="Go to this server's info page">${server.name}</a></th>
45           <td><span class="abstime" data-epoch="${server.epoch()}" title="${server.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${server.fuzzy_date()}</span></td>
46           <td class="text-center">
47             <a href="${request.route_url("game_index", _query={'server_id':server.server_id})}" title="View recent games on this server">
48               <i class="fa fa-list"></i>
49             </a>
50           </td>
51         </tr>
52       % endfor
53       </table>
54
55       ${navlinks("server_index", servers.page, servers.last_page)}
56
57     </div>
58   </div>
59 % endif