X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=fea048e70a0da5813d7ca31b4bc7ccc5d3873afd;hb=40ce03905c7693f17564906def643115e178ebe9;hp=01458caa043da797953dc02b00acc81d7c3cf64d;hpb=1ee9b667d028c54e05e08a8d2b6824a3d0bebb0c;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 01458ca..fea048e 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -4,11 +4,6 @@ Leaderboard -<%block name="css"> - ${parent.css()} - - - <%block name="hero_unit">
@@ -24,61 +19,11 @@
-##### 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 - -
#NickElo
${i}${r.nick_html_colors()|n}${int(round(r.elo))}
-
- % endif - - % endfor -
-% endif - ##### ACTIVE PLAYERS #####
-
Most Active Players
+
Most Active Players
@@ -88,18 +33,12 @@ - <% i = 1 %> - % for (player_id, nick, alivetime) in top_players: + % for tp in top_players: - - % if player_id != '-': - - % else: - - % endif - + + + - <% i = i+1 %> % endfor
${i}${nick|n}${nick|n}${alivetime}${tp.sort_order}${tp.nick_html_colors()|n}${tp.alivetime}
@@ -108,28 +47,22 @@ ##### 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
# ServerGamesTime
${i}${name}${name}${count}${ts.sort_order}${ts.server_name}${ts.play_time_str(max_segments=2)}
@@ -138,7 +71,7 @@ ##### ACTIVE MAPS #####
-
Most Active Maps
+
Most Active Maps
@@ -148,23 +81,18 @@ - <% i = 1 %> - % for (map_id, name, count) in top_maps: + % for tm in top_maps: - - % if map_id != '-': - - % else: - - % endif - + + + - <% i = i+1 %> % endfor
${i}${name}${name}${count}${tm.sort_order}${tm.map_name}${tm.games}
+
*Most active stats are from the past 7 days