]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
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 03dfdc828c61ac9c1904da0d3420338e619cc7c4..1953cb28dfecc2c64a42bac438cfcf30c8f4cec9 100644 (file)
@@ -12,11 +12,13 @@ Recent Games
 
 % if not games:
 <h2>Sorry, no games yet. Get playing!</h2>
 
 % 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>
 
 % 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">
   </div>
 </div>
 <div class="row">
index cb77ed7f26e743695c8e3f03288da5addfafbf51..24be3d3a35b52049e91750ad2d092ac89515825e 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>
       <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:
         <td>
           % if rg.team != None:
           % if rg.team == rg.winner: