Adding "back" links to some player-info pages
authorJan Behrens <zykure@web.de>
Tue, 16 Apr 2013 18:03:21 +0000 (20:03 +0200)
committerJan Behrens <zykure@web.de>
Tue, 16 Apr 2013 18:03:21 +0000 (20:03 +0200)
xonstat/templates/player_game_index.mako
xonstat/templates/player_info.mako

index 03dfdc8..1953cb2 100644 (file)
@@ -12,11 +12,13 @@ Recent Games
 
 % if not games:
 <h2>Sorry, no games yet. Get playing!</h2>
+<p><a href="${player_url}">Back to player info page</a></p>
 
 % else:
 <div class="row">
   <div class="span12">
     <h3>Recent Games by ${player.nick_html_colors()|n}</h3>
+    <p><a href="${player_url}">Back to player info page</a></p>
   </div>
 </div>
 <div class="row">
index cb77ed7..24be3d3 100644 (file)
@@ -443,8 +443,8 @@ Player Information
       <tr>
         <td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
         <td class="tdcenter"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
-        <td>${rg.server_name}</td>
-        <td>${rg.map_name}</td>
+        <td><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
+        <td><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the detail page for this map">${rg.map_name}</a></td>
         <td>
           % if rg.team != None:
           % if rg.team == rg.winner: