]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/game_index.mako
Remove <ul>s, center tables, and tweak the team colors a bit.
[xonotic/xonstat.git] / xonstat / templates / game_index.mako
1 <%inherit file="base.mako"/>\r
2 <%namespace file="scoreboard.mako" import="scoreboard" />\r
3 \r
4 <%block name="title">\r
5 Game Index - ${parent.title()}\r
6 </%block>\r
7 \r
8 % if not games:\r
9 <h2>Sorry, no games yet. Get playing!</h2>\r
10 \r
11 % else:\r
12 <h2>Recent Games</h2>\r
13 % for (game, server, map) in games:\r
14 <p>\r
15    <a href="${request.route_url("map_info", id=map.map_id)}" name="Map info page for ${map.name}">${map.name}</a> on <a href="${request.route_url("server_info", id=server.server_id)}" name="Server info page for ${server.name}">${server.name}</a> (<a href="${request.route_url('game_info', id=game.game_id)}" name="Permalink for game #${game.game_id}">permalink</a> for this game)\r
16 \r
17 <div align="center">\r
18 ## show scoreboard using a def from another file\r
19 ${scoreboard(game.game_type_cd, pgstats[game.game_id])}\r
20 </div>\r
21 \r
22 % endfor\r
23 % endif\r
24 \r
25 % if games.previous_page:\r
26 <a href="${request.route_url("game_index_paged", page=games.previous_page)}" name="Previous Page">Previous</a>\r
27 % endif\r
28 % if games.next_page:\r
29 <a href="${request.route_url("game_index_paged", page=games.next_page)}" name="Next Page">Next</a>\r
30 % endif\r