X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=3405039fe527f9bb2d40dc7e3704d846aefefa5e;hp=0caccc17bcbe90fe09c220c196a569cb6a51f05c;hb=5e7c58ce773acd93dbd00900fcab0caa3e959909;hpb=c31127de29548e4f826e7d27e774d3e33304d738
diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako
old mode 100755
new mode 100644
index 0caccc1..3405039
--- a/xonstat/templates/main_index.mako
+++ b/xonstat/templates/main_index.mako
@@ -1,45 +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 #####
+