X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmain_index.mako;h=a35104e9366b9eef020848951517e6f1aa6716f3;hb=31cde11b854d03d176da91ede110196051507064;hp=12d5323e762cd1e9aff426802f47ba71e767b75a;hpb=ae96b61e5b1c4a5ecd4377f3e904180ac91ad80e;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 12d5323..a35104e --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -1,65 +1,207 @@ -<%inherit file="base.mako"/> - -<%block name="title"> -Main Page - ${parent.title()} - - - - - - - -% for (player_id, nick, score) in top_players: - - - - -% endfor - -% for i in range(10 - len(top_players)): - - - - -% endfor -
NickScore
${nick}${score}
--
- - - - - - -% for (server_id, name, count) in top_servers: - - - - -% endfor - -% for i in range(10 - len(top_servers)): - - - - -% endfor -
ServerGames
${name}${count}
--
- - - - - - -% for (map_id, name, count) in top_maps: - - - - -% endfor - -% for i in range(10 - len(top_maps)): - - - - -% endfor -
MapTimes Played
${name}${count}
--
+<%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}
+
+ + +##### 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}
+
+ + +##### 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}
+
+
+ +

*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