X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=73fd1049ba5cc9f015b789227c971ae897ff6299;hb=ea9415fa94e5ae720c36162302e4d56775f19733;hp=12d5323e762cd1e9aff426802f47ba71e767b75a;hpb=ae96b61e5b1c4a5ecd4377f3e904180ac91ad80e;p=xonotic%2Fxonstat.git
diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako
old mode 100755
new mode 100644
index 12d5323..73fd104
--- a/xonstat/templates/main_index.mako
+++ b/xonstat/templates/main_index.mako
@@ -1,65 +1,189 @@
-<%inherit file="base.mako"/>
-
-<%block name="title">
-Main Page - ${parent.title()}
-%block>
-
-
+
+ % 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
+
+%block>
+
+##### RANKS #####
+% if len(ranks) < 4:
+
+ % 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 #####
+