]> git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/game_info.mako
Add stip and html colorify to PlayerGameStat model. Put this into the template. Chang...
[xonotic/xonstat.git] / xonstat / templates / game_info.mako
1 <%inherit file="base.mako"/>
2
3 <%block name="title">
4 Game Information - ${parent.title()}
5 </%block>
6
7
8 % if game is None:
9 <h2>Sorry, that game wasn't found!</h2>
10
11 % else:
12 <h2>Game Detail</h2>
13 <p>
14 Played on: ${start_dt}<br />
15 Game Type: ${game_type_cd}<br />
16 Server: <a href="${request.route_url("server_info", id=server_id)}" name="Server info page for ${server_name}">${server_name}</a><br />
17 Map: <a href="${request.route_url("map_info", id=map_id)}" name="Map info page for ${map_name}">${map_name}</a><br />
18 </p>
19
20 <h2>Scoreboard</h2>
21 <table border="1">
22     <tr>
23         <td>Nick</td>
24         <td>Kills</td>
25         <td>Deaths</td>
26         <td>Suicides</td>
27         <td>Captures</td>
28         <td>Returns</td>
29         <td>Flag Carrier Kills</td>
30         <td>Score</td>
31     </tr>
32 % for player_game_stat in player_game_stats:
33     <tr>
34         <td>${player_game_stat.nick_html_colors()}</td>
35         <td>${player_game_stat.kills}</td>
36         <td>${player_game_stat.deaths}</td>
37         <td>${player_game_stat.suicides}</td>
38         <td>${player_game_stat.captures}</td>
39         <td>${player_game_stat.returns}</td>
40         <td>${player_game_stat.carrier_frags}</td>
41         <td>${player_game_stat.score}</td>
42     </tr>
43 % endfor
44 </table>
45 % endif