]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/player_info.mako
Various small improvements to style and headings
[xonotic/xonstat.git] / xonstat / templates / player_info.mako
index 561da175b40ab27a36b437fd46f513984b253937..2c2b7dbcfe9b3dd86f806846827efed81f5fc43f 100755 (executable)
@@ -1,4 +1,5 @@
 <%inherit file="base.mako"/>
+<%namespace file="accuracy.mako" import="accuracy" />
 
 <%block name="title">
 % if player:
@@ -20,12 +21,22 @@ ${parent.title()}
 </p>
 % endif
 
+
+##### ACCURACY #####
+% if weapon_stats:
+<h2>Accuracy</h2>
+${accuracy(weapon_stats)}
+% endif
+
+
+##### RECENT GAMES #####
 % if recent_games:
 <h2>Recent Games</h2>
-<ul>
 % for (gamestat, game, server, map) in recent_games:
-   <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>
+   <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>
+<br />
 % endfor
-</ul>
 <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_html_colors()}...
 % endif
+
+