1 <%inherit file="base.mako"/>
9 <link href="/static/css/sprites.css" rel="stylesheet">
12 <%block name="hero_unit">
13 <div class="hero-unit">
14 <img src="/static/css/img/web_background_l2.png" />
15 #####<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>
16 <p id="statline">Tracking Xonotic statistics since October 2011.</p>
22 ##### DUEL RANKS #####
24 <table class="table table-bordered table-condensed">
34 % for (player_id, nick, elo) in duel_ranks:
37 % if player_id != '-':
38 <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>
43 <td>${round(elo, 3)}</td>
52 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='duel')}" title="See more duel rankings">More...</a></p>
53 </div> <!-- /span4 -->
58 <table class="table table-bordered table-condensed">
68 % for (player_id, nick, elo) in ctf_ranks:
71 % if player_id != '-':
72 <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>
77 <td>${round(elo, 3)}</td>
86 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='ctf')}" title="See more CTF rankings">More...</a></p>
87 </div> <!-- /span4 -->
92 <table class="table table-bordered table-condensed">
102 % for (player_id, nick, elo) in dm_ranks:
105 % if player_id != '-':
106 <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>
111 <td>${round(elo, 3)}</td>
120 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='dm')}" title="See more deathmatch rankings">More...</a></p>
121 </div> <!-- /span4 -->
126 <h3>Most Active Players</h3>
127 <table class="table table-bordered table-condensed">
132 <th class="play-time">Play Time</th>
137 % for (player_id, nick, alivetime) in top_players:
140 % if player_id != '-':
141 <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>
145 <td class="play-time">${alivetime}</td>
151 <p class="note">*Most active stats are from the past 7 days</p>
152 </div> <!-- /span4 -->
155 <h3>Most Active Servers</h3>
156 <table class="table table-bordered table-condensed">
166 % for (server_id, name, count) in top_servers:
169 % if server_id != '-':
170 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
180 </div> <!-- /span4 -->
183 <h3>Most Active Maps</h3>
184 <table class="table table-bordered table-condensed">
194 % for (map_id, name, count) in top_maps:
198 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
208 </div> <!-- /span4 -->
211 % if len(recent_games) > 0:
214 <h3>Recent Games</h3>
215 <table class="table table-bordered table-condensed">
227 % for rg in recent_games:
229 <td><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
230 <!-- <td class="gt_icon"><img title="${rg.game_type_cd}" src="/static/images/icons/24x24/${rg.game_type_cd}.png" alt="${rg.game_type_cd}" /></td> -->
231 <td><span class="sprite sprite-${rg.game_type_cd}" title="${rg.game_type_cd}"></span></td>
232 <td><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
233 <td><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
234 <td><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
236 % if rg.player_id > 2:
237 <a href="${request.route_url('player_info', id=rg.player_id)}" title="Go to the player info page for this player">${rg.nick_html_colors|n}</a></td>
239 ${rg.nick_html_colors|n}</td>
245 </div> <!-- /span12 -->