1 <%inherit file="base.mako"/>
\r
3 <%block name="title">
\r
7 <%block name="hero_unit">
\r
8 <div class="hero-unit">
\r
9 <img src="/static/css/img/web_background_l2.png" />
\r
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>
\r
11 <p id="statline">Tracking Xonotic statistics since October 2011.</p>
\r
12 <p><a class="btn btn-primary btn-large" href="http://www.xonotic.org/download" title="Download Xonotic">Get the game »</a></p>
\r
18 ##### DUEL RANKS #####
\r
20 <table class="table table-bordered table-condensed">
\r
30 % for (player_id, nick, elo) in duel_ranks:
\r
33 % if player_id != '-':
\r
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>
\r
39 <td>${round(elo, 3)}</td>
\r
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>
\r
49 </div> <!-- /span4 -->
\r
52 ##### CTF RANKS #####
\r
54 <table class="table table-bordered table-condensed">
\r
64 % for (player_id, nick, elo) in ctf_ranks:
\r
67 % if player_id != '-':
\r
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>
\r
73 <td>${round(elo, 3)}</td>
\r
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>
\r
83 </div> <!-- /span4 -->
\r
86 ##### DM RANKS #####
\r
88 <table class="table table-bordered table-condensed">
\r
98 % for (player_id, nick, elo) in dm_ranks:
\r
101 % if player_id != '-':
\r
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>
\r
107 <td>${round(elo, 3)}</td>
\r
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>
\r
117 </div> <!-- /span4 -->
\r
118 </div> <!-- /row -->
\r
121 <div class="span4">
\r
122 <h3>Most Active Players</h3>
\r
123 <table class="table table-bordered table-condensed">
\r
128 <th class="play-time">Play Time</th>
\r
133 % for (player_id, nick, alivetime) in top_players:
\r
136 % if player_id != '-':
\r
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>
\r
141 <td class="play-time">${alivetime}</td>
\r
147 <p class="note">*Most active stats are from the past 7 days</p>
\r
148 </div> <!-- /span4 -->
\r
150 <div class="span4">
\r
151 <h3>Most Active Servers</h3>
\r
152 <table class="table table-bordered table-condensed">
\r
162 % for (server_id, name, count) in top_servers:
\r
165 % if server_id != '-':
\r
166 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
\r
176 </div> <!-- /span4 -->
\r
178 <div class="span4">
\r
179 <h3>Most Active Maps</h3>
\r
180 <table class="table table-bordered table-condensed">
\r
190 % for (map_id, name, count) in top_maps:
\r
193 % if map_id != '-':
\r
194 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
\r
204 </div> <!-- /span4 -->
\r
205 </div> <!-- /row -->
\r
208 <div class="span12">
\r
209 <h3>Recent Games</h3>
\r
210 <table class="table table-bordered table-condensed">
\r
222 % for (game, server, map, pgstat) in recent_games:
\r
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>
\r
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>
\r
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>
\r
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>
\r
229 <td>${game.start_dt.strftime('%m/%d/%Y %H:%M')}</td>
\r
231 % if pgstat.player_id > 2:
\r
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>
\r
234 ${pgstat.nick_html_colors()|n}</td>
\r
250 </div> <!-- /span12 -->
\r
251 </div> <!-- /row -->
\r