X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=c4e4cd6c824c0fe21d204e7dc81809e92362dbe5;hb=fb0026972b887555782c4e7ede4d6ca8c4705914;hp=04e510b47c68594556dbaab4b30113bb69c074e3;hpb=1e6f8c5ce0dfe99c86df0f4ef1e2fca3f53b162b;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 04e510b..c4e4cd6 100755 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,130 +1,242 @@ <%inherit file="base.mako"/> <%block name="title"> -Main Page - ${parent.title()} +Leaderboard - +
+
+

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}${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}
+
-##### 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}
------
-
+
+

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

Recent Games

+ + + + + + + + + + + + + % for (game, server, map, pgstat) in recent_games: + % if game != '-': + + + + + + + + % else: + ${pgstat.nick_html_colors()|n} + % endif + + % else: + + + + + + + + + % endif + % endfor + +
Game #TypeServerMapTimeWinner
view${game.game_type_cd}${server.name}${map.name}${game.start_dt.strftime('%m/%d/%Y %H:%M')} + % if pgstat.player_id > 2: + ${pgstat.nick_html_colors()|n}
------
+
+