From 3c1d6dd19f4092b694c087d2448f01affc5694da Mon Sep 17 00:00:00 2001
From: Ant Zucaro <azucaro@gmail.com>
Date: Sun, 4 Nov 2012 08:26:16 -0500
Subject: [PATCH] Link to the game for each cap record.

---
 xonstat/templates/map_info.mako | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xonstat/templates/map_info.mako b/xonstat/templates/map_info.mako
index b663438..5fbd2af 100644
--- a/xonstat/templates/map_info.mako
+++ b/xonstat/templates/map_info.mako
@@ -131,7 +131,12 @@ ${parent.title()}
             <span class="nick">${c.nick_html_colors|n}</span>
           % endif
           </td>
-          <td>${round(float(c.fastest_cap.seconds) + (c.fastest_cap.microseconds/1000000.0), 2)}</td>
+          <td>
+            <a href="${request.route_url("game_info", id=c.game_id)}"
+             title="View the game in which this cap was made">
+              ${round(float(c.fastest_cap.seconds) + (c.fastest_cap.microseconds/1000000.0), 2)}
+            </a>
+          </td>
         </tr>
       % endfor
       </tbody>
-- 
2.39.5