X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=fea048e70a0da5813d7ca31b4bc7ccc5d3873afd;hb=HEAD;hp=bc227b527f5d73887d10fc78f1a6c1606a451724;hpb=2d236b3aba7cfb62866bafe2a41bc4e298760f13;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index bc227b5..fea048e 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,238 +1,130 @@ <%inherit file="base.mako"/> <%block name="title"> -Leaderboard - - -<%block name="css"> - ${parent.css()} - + Leaderboard <%block name="hero_unit"> -
- - #####

Tracking 12345 players, 12345 games (123 duels, 123 ctfs, 123 dms), 12345 servers, and 12345 maps since November 2011.

-

Tracking Xonotic statistics since October 2011.

-
+
+ + % 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 +
+ +##### ACTIVE PLAYERS #####
-
- ##### 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...

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

CTF Ranks

- +##### ACTIVE SERVERS ##### +
+
Most Active Servers
+
- - - + + + - <% i = 1 %> - % for (player_id, nick, elo) in ctf_ranks: + % for ts in top_servers: - - % if player_id != '-': - - % else: - - % endif - % if elo != '-': - - % else: - - % endif + + + - <% i = i+1 %> % endfor
#NickElo#ServerTime
${i}${nick|n}${nick|n}${round(elo, 3)}${elo}${ts.sort_order}${ts.server_name}${ts.play_time_str(max_segments=2)}
-

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...

-
- -
-
-

Most Active Players

- +##### ACTIVE MAPS ##### +
+
Most Active Maps
+
- - - + + + - <% i = 1 %> - % for (player_id, nick, alivetime) in top_players: + % for tm in top_maps: - - % if player_id != '-': - - % else: - - % endif - + + + - <% i = i+1 %> % endfor
#NickPlay Time#MapGames
${i}${nick|n}${nick|n}${alivetime}${tm.sort_order}${tm.map_name}${tm.games}
-

*Most active stats are from the past 7 days

-
+
+ -
-

Most Active Servers

- - - - - - - - - - <% i = 1 %> - % for (server_id, name, count) in top_servers: - - - % if server_id != '-': - - % else: - - % endif - - - <% i = i+1 %> - % endfor - -
#ServerGames
${i}${name}${name}${count}
-
+
+
+ *Most active stats are from the past 7 days +
+
-
-

Most Active Maps

- - - - - - - - - - <% i = 1 %> - % for (map_id, name, count) in top_maps: - - - % if map_id != '-': - - % else: - - % endif - - - <% i = i+1 %> - % endfor - -
#MapGames
${i}${name}${name}${count}
-
- +##### RECENT GAMES ##### % if len(recent_games) > 0:
-
-

Recent Games

- +
+
Recent Games
+
- - - - - - + + + + + + % for rg in recent_games: - - - - - - - + + + + + % else: @@ -242,6 +134,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