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