1 <%inherit file="base.mako"/>
7 <%block name="hero_unit">
8 <div class="hero-unit">
9 <img src="/static/css/img/web_background_l2.png" />
10 #####<p id="statline">Tracking <a href="#">12345</a> players, <a href="#">12345</a> games (<a href="#">123</a> duels, <a href="#">123</a> ctfs, <a href="#">123</a> dms), <a href="#">12345</a> servers, and <a href="#">12345</a> maps since November 2011.</p>
11 <p id="statline">Tracking Xonotic statistics since October 2011.</p>
17 ##### DUEL RANKS #####
19 <table class="table table-bordered table-condensed">
29 % for (player_id, nick, elo) in duel_ranks:
32 % if player_id != '-':
33 <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
38 <td>${round(elo, 3)}</td>
47 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='duel')}" title="See more duel rankings">More...</a></p>
48 </div> <!-- /span4 -->
53 <table class="table table-bordered table-condensed">
63 % for (player_id, nick, elo) in ctf_ranks:
66 % if player_id != '-':
67 <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
72 <td>${round(elo, 3)}</td>
81 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='ctf')}" title="See more CTF rankings">More...</a></p>
82 </div> <!-- /span4 -->
87 <table class="table table-bordered table-condensed">
97 % for (player_id, nick, elo) in dm_ranks:
100 % if player_id != '-':
101 <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
106 <td>${round(elo, 3)}</td>
115 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='dm')}" title="See more deathmatch rankings">More...</a></p>
116 </div> <!-- /span4 -->
121 <h3>Most Active Players</h3>
122 <table class="table table-bordered table-condensed">
127 <th class="play-time">Play Time</th>
132 % for (player_id, nick, alivetime) in top_players:
135 % if player_id != '-':
136 <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
140 <td class="play-time">${alivetime}</td>
146 <p class="note">*Most active stats are from the past 7 days</p>
147 </div> <!-- /span4 -->
150 <h3>Most Active Servers</h3>
151 <table class="table table-bordered table-condensed">
161 % for (server_id, name, count) in top_servers:
164 % if server_id != '-':
165 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
175 </div> <!-- /span4 -->
178 <h3>Most Active Maps</h3>
179 <table class="table table-bordered table-condensed">
189 % for (map_id, name, count) in top_maps:
193 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
203 </div> <!-- /span4 -->
208 <h3>Recent Games</h3>
209 <table class="table table-bordered table-condensed">
221 % for (game, server, map, pgstat) in recent_games:
224 <td><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=game.game_id)}" title="View detailed information about this game">view</a></td>
225 <td class="gt_icon"><img title="${game.game_type_cd}" src="/static/images/icons/24x24/${game.game_type_cd}.png" alt="${game.game_type_cd}" /></td>
226 <td><a href="${request.route_url('server_info', id=server.server_id)}" title="Go to the detail page for this server">${server.name}</a></td>
227 <td><a href="${request.route_url('map_info', id=map.map_id)}" title="Go to the map detail page for this map">${map.name}</a></td>
228 <td><span class="abstime" data-epoch="${game.epoch()}" title="${game.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${game.fuzzy_date()}</span></td>
230 % if pgstat.player_id > 2:
231 <a href="${request.route_url('player_info', id=pgstat.player_id)}" title="Go to the player info page for this player">${pgstat.nick_html_colors()|n}</a></td>
233 ${pgstat.nick_html_colors()|n}</td>
249 </div> <!-- /span12 -->