Add server index and template. Fix links on player index and template.
[xonotic/xonstat.git] / xonstat / templates / server_index.mako
1 <%inherit file="base.mako"/>\r
2 \r
3 <%block name="title">\r
4 Map Index - ${parent.title()}\r
5 </%block>\r
6 \r
7 % if not servers:\r
8 <h2>Sorry, no servers yet. Get playing!</h2>\r
9 \r
10 % else:\r
11 <h2>Server Index</h2>\r
12 <table border="1">\r
13   <tr>\r
14     <th>#</th>\r
15     <th>Name</th>\r
16     <th>IP Address</th>\r
17   </tr>\r
18 % for server in servers:\r
19   <tr>\r
20     <td>${server.server_id}</th>\r
21     <td><a href="${request.route_url("server_info", id=server.server_id)}" title="Go to this server's info page">${server.name}</a></th>\r
22   </tr>\r
23 % endfor\r
24 </table>\r
25 % endif\r
26 \r
27 % if servers.previous_page:\r
28 <a href="${request.route_url("server_index_paged", page=servers.previous_page)}" name="Previous Page">Previous</a>\r
29 % endif\r
30 % if servers.next_page:\r
31 <a href="${request.route_url("server_index_paged", page=servers.next_page)}" name="Next Page">Next</a>\r
32 % endif\r