]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/game_info.mako
Integrate navigation mako file and titles.
[xonotic/xonstat.git] / xonstat / templates / game_info.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="scoreboard.mako" import="scoreboard" />
4 <%namespace file="accuracy.mako" import="accuracy" />
5
6 <%block name="navigation">
7 ${nav.nav('games')}
8 </%block>
9
10 <%block name="title">
11 Game Information
12 </%block>
13
14
15 % if game is None:
16 <h2>Sorry, that game wasn't found!</h2>
17
18 % else:
19 <h2>Game Detail</h2>
20 <p>
21 Played on: ${game.start_dt.strftime('%m/%d/%Y at %I:%M %p')}<br />
22 Game Type: ${game.game_type_cd}<br />
23 Server: <a href="${request.route_url("server_info", id=server.server_id)}" name="Server info page for ${server.name}">${server.name}</a><br />
24 Map: <a href="${request.route_url("map_info", id=map.map_id)}" name="Map info page for ${map.name}">${map.name}</a><br />
25 </p>
26
27 ##### SCOREBOARD #####
28 <h2>Scoreboard</h2>
29 ${scoreboard(game.game_type_cd, pgstats)}
30
31
32 ##### ACCURACY #####
33 <h2>Accuracy</h2>
34 % for pgstat in pgstats:
35 % if pgstat.player_game_stat_id in pwstats:
36 <a name="accuracy-${pgstat.player_game_stat_id}" />
37 Accuracy for <a href="${request.route_url('player_info', id=pgstat.player_id)}" title="Go to the player detail page for this player">${pgstat.nick_html_colors()|n}</a>:
38 ${accuracy(pwstats[pgstat.player_game_stat_id])}
39 <br />
40 <br />
41 % endif
42 % endfor
43
44 % endif