1 <%inherit file="base.mako"/>
7 <%block name="hero_unit">
8 <div class="text-center">
9 <img src="/static/css/img/xonotic-logo.png" />
10 % if stat_line is None:
11 <p class="statline">Tracking Xonotic statistics since October 2011.</p>
13 <p class="statline">Tracking ${stat_line|n} since October 2011.</p>
16 % if day_stat_line is not None:
17 <p class="statline">${day_stat_line|n} in the past 24 hours.</p>
25 <div class="small-12 large-12 columns">
26 <p class="text-center"><i class="icon-white icon-info-sign"> </i> You don't seem to have any ranks yet.</p>
32 % for rs in ranks[:4]:
34 <div class="small-12 large-3 columns">
35 % if rs[0].game_type_cd == 'duel':
36 <h5>Duel Ranks <a href="${request.route_url('rank_index', game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings"><i class="fa fa-plus-circle"></i></a></h5>
37 % elif rs[0].game_type_cd == 'ctf':
38 <h5>CTF Ranks <a href="${request.route_url('rank_index', game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings"><i class="fa fa-plus-circle"></i></a></h5>
39 % elif rs[0].game_type_cd == 'dm':
40 <h5>DM Ranks <a href="${request.route_url('rank_index', game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings"><i class="fa fa-plus-circle"></i></a></h5>
41 % elif rs[0].game_type_cd == 'tdm':
42 <h5>TDM Ranks <a href="${request.route_url('rank_index', game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings"><i class="fa fa-plus-circle"></i></a></h5>
45 <table class="table-hover table-condensed">
48 <th class="small-2">#</th>
49 <th class="small-7">Nick</th>
50 <th class="small-3">Elo</th>
58 <td class="no-stretch"><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>
59 <td>${int(round(r.elo))}</td>
73 ##### ACTIVE PLAYERS #####
75 <div class="small-12 large-4 columns">
76 <h5>Most Active Players <a href="${request.route_url('top_players_index')}" title="See more player activity"><i class="fa fa-plus-circle"></i></a></h5>
77 <table class="table table-hover table-condensed">
80 <th class="small-2">#</th>
81 <th class="small-7">Nick</th>
82 <th class="small-3">Time</th>
86 % for tp in top_players:
88 <td>${tp.sort_order}</td>
89 <td class="no-stretch"><a href="${request.route_url('player_info', id=tp.player_id)}" title="Go to the player info page for this player">${tp.nick_html_colors()|n}</a></td>
90 <td>${tp.alivetime}</td>
98 ##### ACTIVE SERVERS #####
99 <div class="small-12 large-4 columns">
100 <h5>Most Active Servers <a href="${request.route_url('top_servers_index')}" title="See more server activity"><i class="fa fa-plus-circle"></i></a></h5>
101 <table class="table table-hover table-condensed">
104 <th class="small-2">#</th>
105 <th class="small-7">Server</th>
106 <th class="small-3">Games</th>
110 % for ts in top_servers:
112 <td>${ts.sort_order}</td>
113 <td class="no-stretch"><a href="${request.route_url('server_info', id=ts.server_id)}" title="Go to the server info page for ${ts.server_name}">${ts.server_name}</a></td>
122 ##### ACTIVE MAPS #####
123 <div class="small-12 large-4 columns">
124 <h5>Most Active Maps <a href="${request.route_url('top_maps_index')}" title="See more map activity"><i class="fa fa-plus-circle"></i></a></h5>
125 <table class="table table-hover table-condensed">
128 <th class="small-2">#</th>
129 <th class="small-7">Map</th>
130 <th class="small-3">Games</th>
134 % for tm in top_maps:
136 <td>${tm.sort_order}</td>
137 <td class="no-stretch"><a href="${request.route_url('map_info', id=tm.map_id)}" title="Go to the map info page for ${tm.map_name}">${tm.map_name}</a></td>
147 <div class="small-12 columns">
148 <small>*Most active stats are from the past 7 days</small>
153 ##### RECENT GAMES #####
154 % if len(recent_games) > 0:
156 <div class="small-12 columns">
157 <h5>Recent Games <a href="${request.route_url('game_index')}"><i class="fa fa-plus-circle"></i></a></h5>
158 <table class="table table-hover table-condensed">
161 <th class="small-1 text-center"></th>
162 <th class="small-1">Type</th>
163 <th class="show-for-medium-up small-3">Server</th>
164 <th class="show-for-medium-up small-2">Map</th>
165 <th class="show-for-large-up small-2">Time</th>
166 <th class="small-3">Winner</th>
170 % for rg in recent_games:
172 <td class="text-center"><a class="button tiny" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
173 <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
174 <td class="show-for-medium-up no-stretch"><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>
175 <td class="show-for-medium-up"><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>
176 <td class="show-for-large-up"><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>
177 <td class="no-stretch">
178 % if rg.player_id > 2:
179 <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>
181 ${rg.nick_html_colors|n}</td>