]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/game_index.mako
Start work on pagination for games: new view, route, and template.
[xonotic/xonstat.git] / xonstat / templates / game_index.mako
1 <%inherit file="base.mako"/>\r
2 \r
3 <%block name="title">\r
4 Game Index - ${parent.title()}\r
5 </%block>\r
6 \r
7 % if not games:\r
8 <h2>Sorry, no games yet. Get playing!</h2>\r
9 \r
10 % else:\r
11 <h2>Recent Games</h2>\r
12 <ul>\r
13 % for (game_id, server_id, server_name, map_id, map_name) in games:\r
14    <li>game <a href="${request.route_url("game_info", id=game_id)}" name="Game info page for game #${game_id}">#${game_id}:</a> <a href="${request.route_url("map_info", id=map_id)}" name="Map info page for ${map_name}">${map_name}</a> on <a href="${request.route_url("server_info", id=server_id)}" name="Server info page for ${server_name}">${server_name}</a></li>\r
15 % endfor\r
16 </ul>\r
17 % endif\r