Remove Persona since it was shut down. :(
[xonotic/xonstat.git] / xonstat / templates / map_top_scorers.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3
4 <%block name="navigation">
5   ${nav.nav('maps')}
6 </%block>
7
8 <%block name="title">
9   Map Top Scorer Index
10 </%block>
11
12 % if not top_scorers and last is not None:
13   <h2 class="text-center">Sorry, no more maps!</h2>
14
15 % elif not top_scorers and last is None:
16   <h2 class="text-center">No maps found. Yikes, get playing!</h2>
17
18 % else:
19   <div class="row">
20     <div class="small-12 large-6 large-offset-3 columns">
21       <table class="table-hover table-condensed">
22         <thead>
23           <tr>
24             <th class="small-2">#</th>
25             <th class="small-7">Nick</th>
26             <th class="small-3">Score</th>
27           </tr>
28         </thead>
29         <tbody>
30         % for ts in top_scorers:
31           <tr>
32             <td>${ts.rank}</td>
33             <td class="no-stretch"><a href="${request.route_url('player_info', id=ts.player_id)}" title="Go to the player info page for this player">${ts.nick|n}</a></td>
34             <td>${ts.total_score}</td>
35           </tr>
36         % endfor
37         </tbody>
38       </table>
39       <p class="text-center"><small>Note: these figures are from the past ${lifetime} days</small></p>
40     </div>
41   </div>
42
43   % if len(top_scorers) == 20:
44     <div class="row">
45       <div class="small-12 large-6 large-offset-3 columns">
46         <ul class="pagination">
47           <li>
48             <a  href="${request.route_url('map_top_scorers', id=map_id, _query=query)}" name="Next Page">Next <i class="fa fa-arrow-right"></i></a>
49           </li>
50         </ul>
51       </div>
52     </div>
53   % endif
54
55 % endif