]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_info.mako
Standardize game presentation in templates. Add link to the player game index from...
[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>This player is so good we couldn't find him!</h2>
14 <p>Seriously though, he probably doesn't exist...just a figment of your imagination. Carry on then!</p>
15
16 % else:
17 <h2>${player.nick}</h2>
18 <p>
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 (gamestat, game, server, map) in recent_games:
27    <li><a href="${request.route_url("game_info", id=game.game_id)}" name="Game info page for game #${game.game_id}">#${game.game_id}:</a> <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></li>
28 % endfor
29 </ul>
30 <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.nick}">More games</a> played by ${player.nick}...
31 % endif