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()} - - - - - - - -% for (player_id, nick, score) in top_players: - - - - -% endfor - -% for i in range(10 - len(top_players)): - - - - -% endfor -
NickScore
${nick}${score}
--
- - - - - - -% for (server_id, name, count) in top_servers: - - - - -% endfor - -% for i in range(10 - len(top_servers)): - - - - -% endfor -
ServerGames
${name}${count}
--
+<%inherit file="base.mako"/> + +<%block name="title"> + Leaderboard + + +<%block name="hero_unit"> +
+ + % 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 +
+ + +##### 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
+ + + + + + + + + + % for tp in top_players: + + + + + + % endfor + +
#NickTime
${tp.sort_order}${tp.nick_html_colors()|n}${tp.alivetime}
+
+ + +##### ACTIVE SERVERS ##### +
+
Most Active Servers
+ + + + + + + + + + % for ts in top_servers: + + + + + + % endfor + +
#ServerGames
${ts.sort_order}${ts.server_name}${ts.games}
+
+ + +##### ACTIVE MAPS ##### +
+
Most Active Maps
+ + + + + + + + + + % for tm in top_maps: + + + + + + % endfor + +
#MapGames
${tm.sort_order}${tm.map_name}${tm.games}
+
+
+ +
+
+ *Most active stats are from the past 7 days +
+
+ + +##### RECENT GAMES ##### +% if len(recent_games) > 0: +
+
+
Recent Games
+ + + + + + + + + + + + + % for rg in recent_games: + + + + + + + + % else: + ${rg.nick_html_colors|n} + % endif + + % endfor + +
TypeServerMapTimeWinner
view${rg.server_name}${rg.map_name}${rg.fuzzy_date} + % if rg.player_id > 2: + ${rg.nick_html_colors|n}
+
+
+% endif