X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=73fd1049ba5cc9f015b789227c971ae897ff6299;hp=175d478824739c6ba9b6de43ce9a8057be2367b2;hb=ea9415fa94e5ae720c36162302e4d56775f19733;hpb=84afc66f897de1d4e470ee0a315fd72754f7da86 diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 175d478..73fd104 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,25 +1,20 @@ <%inherit file="base.mako"/> <%block name="title"> -Leaderboard - - -<%block name="css"> - ${parent.css()} - + Leaderboard <%block name="hero_unit">
- - % if summary_stats is None: -

Tracking Xonotic statistics since October 2011.

+ + % if stat_line is None: +

Tracking Xonotic statistics since October 2011.

% else: -

Tracking ${'{:2,d}'.format(summary_stats.total_players)} players, ${'{:2,d}'.format(summary_stats.total_games)} games (${'{:2,d}'.format(summary_stats.duel_games)} duel; ${'{:2,d}'.format(summary_stats.ctf_games)} ctf; ${'{:2,d}'.format(summary_stats.dm_games)} dm) and ${'{:2,d}'.format(summary_stats.total_servers)} servers since October 2011.

+

Tracking ${stat_line|n} since October 2011.

% endif - % if day_stats is not None: -

${day_stats.day_active_players} active players and ${day_stats.day_games} games (${day_stats.day_duel_games} duel, ${day_stats.day_ctf_games} ctf, ${day_stats.day_dm_games} dm) in the past 24 hours.

+ % if day_stat_line is not None: +

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

% endif
@@ -27,178 +22,159 @@ Leaderboard ##### RANKS ##### % if len(ranks) < 4:
-
-

You don't seem to have any ranks yet.

-
-
+
+

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 + % 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 + +
#NickElo
${i}${r.nick_html_colors()|n}${int(round(r.elo))}
+
+ % endif + % endfor +
+% endif + + +##### ACTIVE PLAYERS ##### +
+
+
Most Active Players
- - - + + + - <% i = 1 %> - % for r in rs: - - - - - - <% i = i+1 %> + % for tp in top_players: + + + + + % endfor
#NickElo#NickTime
${i}${r.nick_html_colors()|n}${int(round(r.elo))}
${tp.sort_order}${tp.nick_html_colors()|n}${tp.alivetime}
-

More...

-
- % 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 - -
#NickPlay Time
${i}${nick|n}${nick|n}${alivetime}
-

More...

-
+
##### ACTIVE SERVERS ##### -
-

Most Active Servers

+
+
Most Active Servers
- - - + + + - <% i = 1 %> - % for (server_id, name, count) in top_servers: + % for ts in top_servers: - - % if server_id != '-': - - % else: - - % endif - + + + - <% i = i+1 %> % endfor
#ServerGames#ServerTime
${i}${name}${name}${count}${ts.sort_order}${ts.server_name}${ts.play_time_str(max_segments=2)}
-

More...

-
+
##### ACTIVE MAPS ##### -
-

Most Active Maps

+
+
Most Active Maps
- - - + + + - <% i = 1 %> - % for (map_id, name, count) in top_maps: + % for tm in top_maps: - - % if map_id != '-': - - % else: - - % endif - + + + - <% i = i+1 %> % endfor
#MapGames#MapGames
${i}${name}${name}${count}${tm.sort_order}${tm.map_name}${tm.games}
-

More...

-
-
- -

*Most active stats are from the past 7 days

+
+ + +
+
+ *Most active stats are from the past 7 days +
##### RECENT GAMES ##### % if len(recent_games) > 0:
-
-

Recent Games

+
+
Recent Games
- - - - - - + + + + + + % for rg in recent_games: - - - - - - + + + + + % else: @@ -208,7 +184,6 @@ Leaderboard % endfor
TypeServerMapTimeWinnerTypeServerMapTimeWinner
view${rg.server_name}${rg.map_name}${rg.fuzzy_date} + view${rg.server_name}${rg.map_name}${rg.fuzzy_date} % if rg.player_id > 2: ${rg.nick_html_colors|n}
-

More...

-
-
+
+ % endif