<%inherit file="base.mako"/> <%block name="title"> Leaderboard <%block name="hero_unit">
% if stat_line is None:

Tracking Xonotic statistics since October 2011.

% else:

Tracking ${stat_line|n} since October 2011.

% endif % if day_stat_line is not None:

${day_stat_line|n} in the past 24 hours.

% endif
##### RANKS ##### % if len(ranks) < 4:

You don't seem to have any ranks yet.

% else:
% for rs in ranks[:4]: % if len(rs) > 0:
% if rs[0].game_type_cd == 'duel':
Duel Ranks
% elif rs[0].game_type_cd == 'ctf':
CTF Ranks
% elif rs[0].game_type_cd == 'dm':
DM Ranks
% elif rs[0].game_type_cd == 'tdm':
TDM Ranks
% endif <% i = 1 %> % for r in rs: <% i = i+1 %> % endfor
# Nick Elo
${i} ${r.nick_html_colors()|n} ${int(round(r.elo))}
% endif % endfor
% endif ##### ACTIVE PLAYERS #####
Most Active Players
<% i = 1 %> % for (player_id, nick, alivetime) in top_players: % if player_id != '-': % else: % endif <% i = i+1 %> % endfor
# Nick Time
${i}${nick|n}${nick|n}${alivetime}
##### ACTIVE SERVERS #####
Most Active Servers
<% i = 1 %> % for (server_id, name, count) in top_servers: % if server_id != '-': % else: % endif <% i = i+1 %> % endfor
# Server Games
${i}${name}${name}${count}
##### ACTIVE MAPS #####
Most Active Maps
<% i = 1 %> % for (map_id, name, count) in top_maps: % if map_id != '-': % else: % endif <% i = i+1 %> % endfor
# Map Games
${i}${name}${name}${count}
*Most active stats are from the past 7 days
##### RECENT GAMES ##### % if len(recent_games) > 0:
Recent Games
% for rg in recent_games: % else: ${rg.nick_html_colors|n} % endif % endfor
Type Server Map Time Winner
view ${rg.server_name} ${rg.map_name} ${rg.fuzzy_date} % if rg.player_id > 2: ${rg.nick_html_colors|n}
% endif