X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=fea048e70a0da5813d7ca31b4bc7ccc5d3873afd;hp=91640ecaa23bd0fae9cc1adbcdfe48a0d064d034;hb=HEAD;hpb=947bcbda4e4e8fb457d5d365bd0faa3691630250 diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 91640ec..fea048e 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,186 +1,130 @@ <%inherit file="base.mako"/> <%block name="title"> -Leaderboard -%block> - -<%block name="css"> - ${parent.css()} - + Leaderboard %block> <%block name="hero_unit"> -
Tracking Xonotic statistics since October 2011.
- % else: -Tracking ${summary_stats.total_players} players, ${summary_stats.total_games} games (${summary_stats.duel_games} duel, ${summary_stats.ctf_games} ctf, ${summary_stats.dm_games} dm), and ${summary_stats.total_servers} servers since October 2011.
- % endif -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 +You don't seem to have any ranks yet.
-# | +Nick | +Time | +
---|---|---|
${tp.sort_order} | +${tp.nick_html_colors()|n} | +${tp.alivetime} | +
# | -Nick | -Elo | +# | +Server | +Time |
---|---|---|---|---|---|
${i} | -${r.nick_html_colors()|n} | -${round(r.elo, 3)} | +${ts.sort_order} | +${ts.server_name} | +${ts.play_time_str(max_segments=2)} |
# | -Nick | -Play Time | +# | +Map | +Games | |
---|---|---|---|---|---|---|
${i} | - % if player_id != '-': -${nick|n} | - % else: -${nick|n} | - % endif -${alivetime} | +${tm.sort_order} | +${tm.map_name} | +${tm.games} |
*Most active stats are from the past 7 days
-# | -Server | -Games | -|
---|---|---|---|
${i} | - % if server_id != '-': -${name} | - % else: -${name} | - % endif -${count} | -
# | -Map | -Games | -|
---|---|---|---|
${i} | - % if map_id != '-': -${name} | - % else: -${name} | - % endif -${count} | -
- | Type | -Server | -Map | -Time | -Winner | ++ | Type | +Server | +Map | +Time | +Winner |
---|---|---|---|---|---|---|---|---|---|---|---|
view | - -- | ${rg.server_name} | -${rg.map_name} | -${rg.fuzzy_date} | -+ | view | ++ | ${rg.server_name} | +${rg.map_name} | +${rg.fuzzy_date} | +% if rg.player_id > 2: ${rg.nick_html_colors|n} | % else: @@ -190,7 +134,6 @@ Leaderboard % endfor