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>
12 <p><a class="btn btn-primary btn-large" href="http://www.xonotic.org/download" title="Download Xonotic">Get the game »</a></p>
18 ##### DUEL RANKS #####
20 <table class="table table-bordered table-condensed">
30 % for (player_id, nick, elo) in duel_ranks:
33 % if player_id != '-':
34 <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>
39 <td>${round(elo, 3)}</td>
48 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='duel')}" title="See more duel rankings">More...</a></p>
49 </div> <!-- /span4 -->
54 <table class="table table-bordered table-condensed">
64 % for (player_id, nick, elo) in ctf_ranks:
67 % if player_id != '-':
68 <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>
73 <td>${round(elo, 3)}</td>
82 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='ctf')}" title="See more CTF rankings">More...</a></p>
83 </div> <!-- /span4 -->
88 <table class="table table-bordered table-condensed">
98 % for (player_id, nick, elo) in dm_ranks:
101 % if player_id != '-':
102 <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>
107 <td>${round(elo, 3)}</td>
116 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='dm')}" title="See more deathmatch rankings">More...</a></p>
117 </div> <!-- /span4 -->
122 <h3>Most Active Players</h3>
123 <table class="table table-bordered table-condensed">
128 <th class="play-time">Play Time</th>
133 % for (player_id, nick, alivetime) in top_players:
136 % if player_id != '-':
137 <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>
141 <td class="play-time">${alivetime}</td>
147 <p class="note">*Most active stats are from the past 7 days</p>
148 </div> <!-- /span4 -->
151 <h3>Most Active Servers</h3>
152 <table class="table table-bordered table-condensed">
162 % for (server_id, name, count) in top_servers:
165 % if server_id != '-':
166 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
176 </div> <!-- /span4 -->
179 <h3>Most Active Maps</h3>
180 <table class="table table-bordered table-condensed">
190 % for (map_id, name, count) in top_maps:
194 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
204 </div> <!-- /span4 -->
209 <h3>Recent Games</h3>
210 <table class="table table-bordered table-condensed">
222 % for (game, server, map, pgstat) in recent_games:
225 <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>
226 <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>
227 <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>
228 <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>
229 <td><span title="${game.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${game.fuzzy_date()}</span></td>
231 % if pgstat.player_id > 2:
232 <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>
234 ${pgstat.nick_html_colors()|n}</td>
250 </div> <!-- /span12 -->