]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Prevent 500s when the player has no caps.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 3 Sep 2014 01:37:48 +0000 (21:37 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 3 Sep 2014 01:37:48 +0000 (21:37 -0400)
xonstat/templates/player_captimes.mako

index 2564160498311a75b913035bc4980f6a00cdaa7b..0ecdfca32d1dd7515b8451b94379e9b73654f7ff 100644 (file)
@@ -12,7 +12,7 @@ Player captimes
 
 % if len(captimes) == 0:
 <h2>Sorry, no caps yet. Get playing!</h2>
-<p><a href="${player_url}">Back to player info page</a></p>
+<p><a href="${request.route_url('player_info', id=player.player_id)}">Back to player info page</a></p>
 % else:
 
 <div class="row">