From: Jan Behrens <zykure@web.de>
Date: Tue, 16 Apr 2013 18:03:21 +0000 (+0200)
Subject: Adding "back" links to some player-info pages
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=93679dbb370249e3ea13b633281e7fa81a2c650c;p=xonotic%2Fxonstat.git

Adding "back" links to some player-info pages
---

diff --git a/xonstat/templates/player_game_index.mako b/xonstat/templates/player_game_index.mako
index 03dfdc8..1953cb2 100644
--- a/xonstat/templates/player_game_index.mako
+++ b/xonstat/templates/player_game_index.mako
@@ -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">
diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako
index cb77ed7..24be3d3 100644
--- a/xonstat/templates/player_info.mako
+++ b/xonstat/templates/player_info.mako
@@ -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: