X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=321b8e187d0727f063a5dfa49e5ec89fad028d57;hp=6ed4e17f6f190e19480669297d0242a567946454;hb=70c8bc8f4ce76c8073adcc09da3cd91abe9636fa;hpb=23b518af51a66cf20e57c3e215bd7dda6f0b97f3 diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 6ed4e17..321b8e1 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,241 +1,180 @@ <%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.

- % else: -

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

- % endif -
+
+ + % 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 +
-
-
- ##### DUEL RANKS ##### -

Duel Ranks

- - - - - - - - - - <% i = 1 %> - % for (player_id, nick, elo) in duel_ranks: - - - % if player_id != '-': - - % else: - - % endif - % if elo != '-': - - % else: - - % endif - - <% i = i+1 %> - % endfor - -
#NickElo
${i}${nick|n}${nick|n}${round(elo, 3)}${elo}
-

More...

-
+##### RANKS ##### +% if len(ranks) < 4: +
+
+

You don't seem to have any ranks yet.

+
+
-
- ##### CTF RANKS ##### -

CTF Ranks

- - - - - - - - - - <% i = 1 %> - % for (player_id, nick, elo) in ctf_ranks: - - - % if player_id != '-': - - % else: - - % endif - % if elo != '-': - - % else: - +% 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 = i+1 %> - % endfor - -
#NickElo
${i}${nick|n}${nick|n}${round(elo, 3)}${elo}
-

More...

-
-
- ##### DM RANKS ##### -

DM Ranks

- - - - - - - - - - <% i = 1 %> - % for (player_id, nick, elo) in dm_ranks: - - - % if player_id != '-': - - % else: - - % endif - % if elo != '-': - - % else: - - % endif - - <% i = i+1 %> - % endfor - -
#NickElo
${i}${nick|n}${nick|n}${round(elo, 3)}${elo}
-

More...

-
-
+ + + + + + + + + + <% 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 (player_id, nick, alivetime) in top_players: - - - % if player_id != '-': - - % else: - - % endif - - - <% i = i+1 %> - % endfor - -
#NickPlay Time
${i}${nick|n}${nick|n}${alivetime}
-

*Most active stats are from the past 7 days

-
+
+
Most Active Players
+ + + + + + + + + + % for tp in top_players: + + + + + + % endfor + +
#NickTime
${tp.sort_order}${tp.nick_html_colors()|n}${tp.alivetime}
+
-
-

Most Active Servers

- + +##### 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)}
-
+
-
-

Most Active Maps

- + +##### 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}
-
- + + + +
+
+ *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: @@ -245,6 +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}
-
-
+ + % endif