X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=8e14481f3dec5b9d469cfaaf48c0c114f45ef6ae;hp=c4e4cd6c824c0fe21d204e7dc81809e92362dbe5;hb=3810e410c696ec30dc09ce6d0bbdadcfa5901827;hpb=fb0026972b887555782c4e7ede4d6ca8c4705914 diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako old mode 100755 new mode 100644 index c4e4cd6..8e14481 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,242 +1,210 @@ -<%inherit file="base.mako"/> - -<%block name="title"> -Leaderboard - - -
-
- ##### 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}${nick}${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}${nick}${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}${nick}${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}${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}
-
-
- -
-
-

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}
------
-
-
+<%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 ${'{: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 +
+ + +##### RANKS ##### +% if len(ranks) < 4: +
+
+

You don't seem to have any ranks yet.

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

+ % elif rs[0].game_type_cd == 'tdm': +

TDM Ranks

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

More...

+
+ % endif + + % endfor +
+% endif + + +##### ACTIVE PLAYERS ##### +
+
+

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

More...

+
+ + +##### ACTIVE SERVERS ##### +
+

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

More...

+
+ + +##### ACTIVE MAPS ##### +
+

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

More...

+
+
+ +

*Most active stats are from the past 7 days

+ + + +##### RECENT GAMES ##### +% 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