X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=a35104e9366b9eef020848951517e6f1aa6716f3;hp=3b9d4537974ec98684d8b0b741b7766862f6a144;hb=31cde11b854d03d176da91ede110196051507064;hpb=71c8d6efdc344d0fc9b83d834f02f31ef6293916 diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 3b9d453..a35104e 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -4,128 +4,84 @@ Leaderboard %block> +<%block name="css"> + ${parent.css()} + +%block> + <%block name="hero_unit"> -
Tracking 12345 players, 12345 games (123 duels, 123 ctfs, 123 dms), 12345 servers, and 12345 maps since November 2011.
-Tracking Xonotic statistics since October 2011.
- -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.
+ % endif +# | -Nick | -Elo | -||
---|---|---|---|---|
${i} | - % if player_id != '-': -${nick|n} | - % else: -${nick|n} | - % endif - % if elo != '-': -${round(elo, 3)} | - % else: -${elo} | - % endif -
You don't seem to have any ranks yet.
+# | -Nick | -Elo | -||
---|---|---|---|---|
${i} | - % if player_id != '-': -${nick|n} | - % else: -${nick|n} | - % endif - % if elo != '-': -${round(elo, 3)} | - % else: -${elo} | - % endif -
# | -Nick | -Elo | -
---|
# | +Nick | +Elo | +||||
---|---|---|---|---|---|---|
${i} | - % if player_id != '-': -${nick|n} | - % else: -${nick|n} | - % endif - % if elo != '-': -${round(elo, 3)} | - % else: -${elo} | - % endif +${r.nick_html_colors()|n} | +${int(round(r.elo))} |
# | -Nick | -Play Time | +# | +Nick | +Play Time |
---|---|---|---|---|---|
${i} | % if player_id != '-': -${nick|n} | +${nick|n} | % else: -${nick|n} | +${nick|n} | % endif${alivetime} |
*Most active stats are from the past 7 days
+ +##### ACTIVE SERVERS ###### | -Server | -Games | +# | +Server | +Games |
---|---|---|---|---|---|
${i} | % if server_id != '-': -${name} | +${name} | % else: -${name} | +${name} | % endif${count} |
# | -Map | -Games | +# | +Map | +Games |
---|---|---|---|---|---|
${i} | % if map_id != '-': -${name} | +${name} | % else: -${name} | +${name} | % endif${count} |
*Most active stats are from the past 7 days
+ + +##### RECENT GAMES ##### +% if len(recent_games) > 0:@@ -219,33 +184,24 @@ Leaderboard | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
view | -- | ${server.name} | -${map.name} | -${game.fuzzy_date()} | -- % if pgstat.player_id > 2: - ${pgstat.nick_html_colors()|n} | +view | ++ | ${rg.server_name} | +${rg.map_name} | +${rg.fuzzy_date} | ++ % if rg.player_id > 2: + ${rg.nick_html_colors|n} | % else: - ${pgstat.nick_html_colors()|n} + ${rg.nick_html_colors|n} % endif
- | -- | -- | -- | -- | -- | -