X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=fea048e70a0da5813d7ca31b4bc7ccc5d3873afd;hp=3405039fe527f9bb2d40dc7e3704d846aefefa5e;hb=HEAD;hpb=5e7c58ce773acd93dbd00900fcab0caa3e959909
diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako
index 3405039..fea048e 100644
--- a/xonstat/templates/main_index.mako
+++ b/xonstat/templates/main_index.mako
@@ -19,56 +19,6 @@
%block>
-##### 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
-
-
-
-
- # |
- Nick |
- Elo |
-
-
-
- <% i = 1 %>
- % for r in rs:
-
- ${i} |
- ${r.nick_html_colors()|n} |
- ${int(round(r.elo))} |
-
- <% i = i+1 %>
- % endfor
-
-
-
- % endif
-
- % endfor
-
-% endif
-
##### ACTIVE PLAYERS #####
@@ -103,7 +53,7 @@
# |
Server |
- Games |
+ Time |
@@ -111,7 +61,7 @@
${ts.sort_order} |
${ts.server_name} |
- ${ts.games} |
+ ${ts.play_time_str(max_segments=2)} |
% endfor
@@ -134,7 +84,7 @@
% for tm in top_maps:
${tm.sort_order} |
- ${tm.map_name} |
+ ${tm.map_name} |
${tm.games} |
% endfor