]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Link to the game for each cap record.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 4 Nov 2012 13:26:16 +0000 (08:26 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 4 Nov 2012 13:26:16 +0000 (08:26 -0500)
xonstat/templates/map_info.mako

index b6634386385cbe4e76771db1f92e56e8a17647b3..5fbd2afe866a2f634727452028d26714f01ab28e 100644 (file)
@@ -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>