X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=6ed4e17f6f190e19480669297d0242a567946454;hb=a04b40dd5d15bf54e4f61634bb26be7b1b74e701;hp=24eb8274c0bbf7e3cef64316092a3909bbcab527;hpb=d7517d0c13b6ac3de5d7dcc6204a68553f034d34;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 24eb827..6ed4e17 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,122 +1,250 @@ -<%inherit file="base.mako"/> - -<%block name="title"> -Main Page - ${parent.title()} - - -
- -##### TOP PLAYERS ##### - - - - - - - - - -<% i = 1 %> -% for (player_id, nick, score) in top_players: - - - % if player_id != '-': - - % else: - - % endif - - - <% i = i+1 %> -% endfor -
Top Players
#NickScore
${i}${nick}${nick}${score}
- -##### TOP SERVERS ##### - - - - - - - - - -<% i = 1 %> -% for (server_id, name, count) in top_servers: - - - % if server_id != '-': - - % else: - - % endif - - - <% i = i+1 %> -% endfor -
Top Servers
#ServerGames
${i}${name}${name}${count}
- -##### TOP MAPS ##### - - - - - - - - - -<% i = 1 %> -% for (map_id, name, count) in top_maps: - - - % if map_id != '-': - - % else: - - % endif - - - <% i = i+1 %> -% endfor -
Top Maps
#MapTimes Played
${i}${name}${name}${count}
-
- -
- -##### RECENT GAMES ##### - - - - - - - - - - - - - % for (game, server, map) in recent_games: - % if game != '-': - - - - - - - - - % else: - - - - - - - - - % endif - % endfor -
Recent Games
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 +
+ + +
+
+ ##### DUEL RANKS ##### +

Duel Ranks

+ + + + + + + + + + <% i = 1 %> + % for (player_id, nick, elo) in duel_ranks: + + + % if player_id != '-': + + % else: + + % endif + % if elo != '-': + + % else: + + % endif + + <% i = i+1 %> + % endfor + +
#NickElo
${i}${nick|n}${nick|n}${round(elo, 3)}${elo}
+

More...

+
+ +
+ ##### CTF RANKS ##### +

CTF Ranks

+ + + + + + + + + + <% i = 1 %> + % for (player_id, nick, elo) in ctf_ranks: + + + % if player_id != '-': + + % else: + + % endif + % if elo != '-': + + % else: + + % endif + + <% i = i+1 %> + % endfor + +
#NickElo
${i}${nick|n}${nick|n}${round(elo, 3)}${elo}
+

More...

+
+ +
+ ##### DM RANKS ##### +

DM Ranks

+ + + + + + + + + + <% i = 1 %> + % for (player_id, nick, elo) in dm_ranks: + + + % if player_id != '-': + + % else: + + % endif + % if elo != '-': + + % else: + + % endif + + <% i = i+1 %> + % endfor + +
#NickElo
${i}${nick|n}${nick|n}${round(elo, 3)}${elo}
+

More...

+
+
+ +
+
+

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}
+
+
+% endif