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 % if summary_stats is None:
16 <p id="statline">Tracking Xonotic statistics since October 2011.</p>
18 <p id="statline">Tracking <a href="${request.route_url('player_index')}">${summary_stats.total_players}</a> players, <a href="${request.route_url('game_index')}">${summary_stats.total_games}</a> games (${summary_stats.duel_games} duel, ${summary_stats.ctf_games} ctf, ${summary_stats.dm_games} dm), and <a href="${request.route_url('server_index')}">${summary_stats.total_servers}</a> servers since October 2011.</p>
25 ##### DUEL RANKS #####
27 <table class="table table-bordered table-condensed">
37 % for (player_id, nick, elo) in duel_ranks:
40 % if player_id != '-':
41 <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>
46 <td>${round(elo, 3)}</td>
55 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='duel')}" title="See more duel rankings">More...</a></p>
56 </div> <!-- /span4 -->
61 <table class="table table-bordered table-condensed">
71 % for (player_id, nick, elo) in ctf_ranks:
74 % if player_id != '-':
75 <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>
80 <td>${round(elo, 3)}</td>
89 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='ctf')}" title="See more CTF rankings">More...</a></p>
90 </div> <!-- /span4 -->
95 <table class="table table-bordered table-condensed">
105 % for (player_id, nick, elo) in dm_ranks:
108 % if player_id != '-':
109 <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>
114 <td>${round(elo, 3)}</td>
123 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd='dm')}" title="See more deathmatch rankings">More...</a></p>
124 </div> <!-- /span4 -->
129 <h3>Most Active Players</h3>
130 <table class="table table-bordered table-condensed">
135 <th class="play-time">Play Time</th>
140 % for (player_id, nick, alivetime) in top_players:
143 % if player_id != '-':
144 <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>
148 <td class="play-time">${alivetime}</td>
154 <p class="note">*Most active stats are from the past 7 days</p>
155 </div> <!-- /span4 -->
158 <h3>Most Active Servers</h3>
159 <table class="table table-bordered table-condensed">
169 % for (server_id, name, count) in top_servers:
172 % if server_id != '-':
173 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
183 </div> <!-- /span4 -->
186 <h3>Most Active Maps</h3>
187 <table class="table table-bordered table-condensed">
197 % for (map_id, name, count) in top_maps:
201 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
211 </div> <!-- /span4 -->
214 % if len(recent_games) > 0:
217 <h3>Recent Games</h3>
218 <table class="table table-bordered table-condensed">
230 % for rg in recent_games:
232 <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>
233 <!-- <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> -->
234 <td><span class="sprite sprite-${rg.game_type_cd}" title="${rg.game_type_cd}"></span></td>
235 <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>
236 <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>
237 <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>
239 % if rg.player_id > 2:
240 <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>
242 ${rg.nick_html_colors|n}</td>
248 </div> <!-- /span12 -->