]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/game_index.mako
Applied Xonotic HTML/CSS/JS theme and worked existing HTML/CSS
[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 <div class="game">\r
15         <h3><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> <span class="permalink">(<a href="${request.route_url('game_info', id=game.game_id)}" name="Permalink for game #${game.game_id}">permalink</a>)</span></h3>\r
16 ## show scoreboard using a def from another file\r
17 ${scoreboard(game.game_type_cd, pgstats[game.game_id])}\r
18 </div>\r
19 \r
20 % endfor\r
21 % endif\r
22 \r
23 % if games.previous_page:\r
24 <a href="${request.route_url("game_index_paged", page=games.previous_page)}" name="Previous Page">Previous</a>\r
25 % endif\r
26 % if games.next_page:\r
27 <a href="${request.route_url("game_index_paged", page=games.next_page)}" name="Next Page">Next</a>\r
28 % endif\r