X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=fea048e70a0da5813d7ca31b4bc7ccc5d3873afd;hb=13554fa40f2aa83e30cf8a7cecd93a6ab6102b6f;hp=983f2eebb7888ba7a82f10c06886e1ccb3bfc4f1;hpb=75e7a7632daf429eb04b102c2710967553dd6ad1;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 983f2ee..fea048e 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,197 +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.
+ + % if stat_line is None: +Tracking Xonotic statistics since October 2011.
% else: -Tracking ${'{:2,d}'.format(summary_stats.total_players)} players, ${'{:2,d}'.format(summary_stats.total_games)} games (${'{:2,d}'.format(summary_stats.duel_games)} duel; ${'{:2,d}'.format(summary_stats.ctf_games)} ctf; ${'{:2,d}'.format(summary_stats.dm_games)} dm) and ${'{:2,d}'.format(summary_stats.total_servers)} servers since October 2011.
+Tracking ${stat_line|n} since October 2011.
+ % endif + + % if day_stat_line is not None: +${day_stat_line|n} in the past 24 hours.
% endifYou don't seem to have any ranks yet.
-# | -Nick | -Elo | +# | +Nick | +Time |
---|---|---|---|---|---|
${i} | -${r.nick_html_colors()|n} | -${int(round(r.elo))} | -|||
${tp.sort_order} | +${tp.nick_html_colors()|n} | +${tp.alivetime} | +
# | -Nick | -Play Time | -|
---|---|---|---|
${i} | - % if player_id != '-': -${nick|n} | - % else: -${nick|n} | - % endif -${alivetime} | -
# | -Server | -Games | +# | +Server | +Time | |
---|---|---|---|---|---|---|
${i} | - % if server_id != '-': -${name} | - % else: -${name} | - % endif -${count} | +${ts.sort_order} | +${ts.server_name} | +${ts.play_time_str(max_segments=2)} |
# | -Map | -Games | +# | +Map | +Games | |
---|---|---|---|---|---|---|
${i} | - % if map_id != '-': -${name} | - % else: -${name} | - % endif -${count} | +${tm.sort_order} | +${tm.map_name} | +${tm.games} |
*Most active stats are from the past 7 days
+- | 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: @@ -201,7 +134,6 @@ Leaderboard % endfor