X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=74a9d5ffe28f21fe6866f287a16e93210c35e692;hb=4919a3a1ca85a3b7be1c7b9e9b4a431c28356be4;hp=04e510b47c68594556dbaab4b30113bb69c074e3;hpb=5d112375c8f8d653a3d3e7b5654be3ae6b7b51ee;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako old mode 100755 new mode 100644 index 04e510b..74a9d5f --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,130 +1,196 @@ -<%inherit file="base.mako"/> - -<%block name="title"> -Main Page - ${parent.title()} - - - - -
- -##### RECENT GAMES ##### -

Recent Games

- - - - - - - - - - - - - % for (game, server, map) in recent_games: - % if game != '-': - - - - - - - - - % else: - - - - - - - - - % endif - % endfor - -
Game #TypeServerMapTimeWinner
${game.game_id}${game.game_type_cd}${server.name}${map.name}${game.start_dt.strftime('%m/%d/%Y %H:%M')}${game.winner}
------
-
+<%inherit file="base.mako"/> + +<%block name="title"> +Leaderboard + + +<%block name="css"> + ${parent.css()} + + + +<%block name="hero_unit"> +
+ + % if summary_stats is None: +

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 +
+ + +% if len(ranks) < 3: +
+
+

You don't seem to have any ranks yet.

+
+
+% else: +
+% for rs in ranks[:3]: + % 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

+ % endif + + + + + + + + + + + <% i = 1 %> + % for r in rs: + + + + + + <% i = i+1 %> + % endfor + +
#NickElo
${i}${r.nick_html_colors()|n}${round(r.elo, 3)}
+

More...

+
+ % endif + +% endfor +
+% endif + + +
+
+

Most Active Players

+ + + + + + + + + + <% i = 1 %> + % for (player_id, nick, alivetime) in top_players: + + + % if player_id != '-': + + % else: + + % endif + + + <% i = i+1 %> + % endfor + +
#NickPlay Time
${i}${nick|n}${nick|n}${alivetime}
+

*Most active stats are from the past 7 days

+
+ +
+

Most Active Servers

+ + + + + + + + + + <% i = 1 %> + % for (server_id, name, count) in top_servers: + + + % if server_id != '-': + + % else: + + % endif + + + <% i = i+1 %> + % endfor + +
#ServerGames
${i}${name}${name}${count}
+
+ +
+

Most Active Maps

+ + + + + + + + + + <% i = 1 %> + % for (map_id, name, count) in top_maps: + + + % if map_id != '-': + + % else: + + % endif + + + <% i = i+1 %> + % endfor + +
#MapGames
${i}${name}${name}${count}
+
+
+ +% 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}
+

More...

+
+
+% endif