1 <%inherit file="base.mako"/>
\r
3 <%block name="title">
\r
4 Game Index - ${parent.title()}
\r
8 <h2>Sorry, no games yet. Get playing!</h2>
\r
11 <h2>Recent Games</h2>
\r
12 % for (game, server, map) in games:
\r
14 <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
15 <table border="1" cellpadding="3">
\r
16 % if game.game_type_cd == 'ctf':
\r
23 <td>Flag Carrier Kills</td>
\r
29 % for pgstat in pgstats[game.game_id]:
\r
32 % if pgstat.player_id > 2:
\r
33 <a href="${request.route_url("player_info", id=pgstat.player_id)}"
\r
34 title="Go to the info page for this player">
\r
35 ${pgstat.nick_html_colors()}
\r
38 ${pgstat.nick_html_colors()}
\r
41 <td style="background-color:${pgstat.team_html_color()};"></td>
\r
42 <td>${pgstat.kills}</td>
\r
43 <td>${pgstat.captures}</td>
\r
44 <td>${pgstat.pickups}</td>
\r
45 <td>${pgstat.carrier_frags}</td>
\r
46 <td>${pgstat.returns}</td>
\r
47 <td>${pgstat.score}</td>
\r
49 % if pgstat.player_id > 1:
\r
50 <a href="${request.route_url("player_weapon_stats", game_id=pgstat.game_id, pgstat_id=pgstat.player_game_stat_id)}"
\r
51 title="View weapon accuracy details for this player in this game">
\r
63 % if games.previous_page:
\r
64 <a href="${request.route_url("game_index_paged", page=games.previous_page)}" name="Previous Page">Previous</a>
\r
66 % if games.next_page:
\r
67 <a href="${request.route_url("game_index_paged", page=games.next_page)}" name="Next Page">Next</a>
\r