]> git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_info.mako
Add more detail and linking to the views and corresponding templates for game and...
[xonotic/xonstat.git] / xonstat / templates / player_info.mako
1 <%inherit file="base.mako"/>
2
3 <%block name="title">
4 % if player:
5 Player Information for ${player.nick} - 
6 % endif
7
8 ${parent.title()}
9 </%block>
10
11
12 % if player is None:
13 <h2>Sorry, that player wasn't found!</h2>
14
15 % else:
16 <h2>Player Detail</h2>
17 <p>
18    Nickname: ${player.nick} <br />
19    Joined: ${player.create_dt.strftime('%m/%d/%Y at %I:%M %p')} <br />
20 </p>
21 % endif
22
23 % if recent_games:
24 <h2>Recent Games</h2>
25 <ul>
26 % for (game_id, server_id, server_name, map_id, map_name) in recent_games:
27    <li><a href="${request.route_url("map_info", id=map_id)}" name="Map info page for ${map_name}">${map_name}</a> on <a href="${request.route_url("server_info", id=server_id)}" name="Server info page for ${server_name}">${server_name}</a> (game <a href="${request.route_url("game_info", id=game_id)}" name="Game info page for game #${game_id}">#${game_id}</a>)</li>
28 % endfor
29 </ul>
30 % endif