1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
5 <%block name="navigation">
14 <h2>Sorry, no players yet. Get playing!</h2>
17 ##### ACTIVE PLAYERS #####
19 <div class="span6 offset3">
20 <table class="table table-hover table-condensed">
23 <th style="width:40px;">#</th>
24 <th style="width:150px;">Nick</th>
25 <th class="play-time" style="width:90px;">Play Time</th>
29 ##### this is to get around the actual row_number/rank of the player not being in the actual query
30 <% i = 1 + (top_players.page-1) * 25%>
31 % for (player_id, nick, alivetime) in top_players.items:
34 % if player_id != '-':
35 <td class="nostretch" style="max-width:150px;"><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
37 <td class="nostretch" style="max-width:150px;">${nick|n}</td>
39 <td class="play-time">${alivetime}</td>
45 <p class="note">*figures are from the past 7 days</p>
46 </div> <!-- /span4 -->
49 ${navlinks("top_players_by_time", top_players.page, top_players.last_page)}
50 </div> <!-- /span4 -->