<%inherit file="base.mako"/>
<%namespace name="nav" file="nav.mako" />
+<%namespace file="navlinks.mako" import="navlinks" />
+
+<%block name="navigation">
+${nav.nav('players')}
+</%block>
<%block name="title">
Player captimes
</%block>
% if len(captimes) == 0:
- <h2>Sorry, no caps yet. Get playing!</h2>
+<h2>Sorry, no caps yet. Get playing!</h2>
+<p><a href="${player_url}">Back to player info page</a></p>
% else:
<div class="row">
<div class="span12">
- <h3>Fastest Flag Captures by ${player.nick_html_colors()|n}</h3>
- <p><a href="${player_url}">Back to player info page</a></p>
+ <h3>Fastest Flag Captures by
+ <a href="${request.route_url('player_info', id=player.player_id)}">
+ ${player.nick_html_colors()|n}
+ </a>
+ </h3>
<table class="table table-hover table-condensed">
<thead>
</tr>
</thead>
<tbody>
- % for ct in captimes:
+ % for ct in captimes.items:
<tr>
<td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=ct.game_id)}" title="View detailed information about this game">view</a></td>
<td>${ct.fastest_cap.total_seconds()} seconds</td>
</div>
</div>
+<!-- navigation links -->
+${navlinks("player_captimes", captimes.page, captimes.last_page, player_id=player_id, search_query=request.GET)}
% endif