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>
26 <p style="text-align: center;"><i class="icon-white icon-info-sign"> </i> You don't seem to have any ranks yet.</p>
27 </div> <!-- span12 -->
31 % for rs in ranks[:3]:
35 % if rs[0].game_type_cd == 'duel':
37 % elif rs[0].game_type_cd == 'ctf':
39 % elif rs[0].game_type_cd == 'dm':
43 <table class="table table-bordered table-condensed">
56 <td><a href="${request.route_url('player_info', id=r.player_id)}" title="Go to the player info page for this player">${r.nick_html_colors()|n}</a></td>
57 <td>${round(r.elo, 3)}</td>
63 <p class="note"><a href="${request.route_url('rank_index', page=1, game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings">More...</a></p>
64 </div> <!-- /span4 -->
74 <h3>Most Active Players</h3>
75 <table class="table table-bordered table-condensed">
80 <th class="play-time">Play Time</th>
85 % for (player_id, nick, alivetime) in top_players:
88 % if player_id != '-':
89 <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>
93 <td class="play-time">${alivetime}</td>
99 <p class="note">*Most active stats are from the past 7 days</p>
100 </div> <!-- /span4 -->
103 <h3>Most Active Servers</h3>
104 <table class="table table-bordered table-condensed">
114 % for (server_id, name, count) in top_servers:
117 % if server_id != '-':
118 <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>
128 </div> <!-- /span4 -->
131 <h3>Most Active Maps</h3>
132 <table class="table table-bordered table-condensed">
142 % for (map_id, name, count) in top_maps:
146 <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>
156 </div> <!-- /span4 -->
159 % if len(recent_games) > 0:
162 <h3>Recent Games</h3>
163 <table class="table table-bordered table-condensed">
175 % for rg in recent_games:
177 <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>
178 <!-- <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> -->
179 <td><span class="sprite sprite-${rg.game_type_cd}" title="${rg.game_type_cd}"></span></td>
180 <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>
181 <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>
182 <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>
184 % if rg.player_id > 2:
185 <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>
187 ${rg.nick_html_colors|n}</td>
193 </div> <!-- /span12 -->