X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmap_info.mako;h=c58f74a642f8d5827eef9888a1df0573ef46b554;hb=cf9226da5cd4e8e8f1841a6f6f5e0ae7c18038b5;hp=7cdd52ca4cda3efdccf7c205a6408ee4fe92ad82;hpb=e853e9533e3edfa7402d70cb641b715d35a19b89;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/map_info.mako b/xonstat/templates/map_info.mako old mode 100755 new mode 100644 index 7cdd52c..c58f74a --- a/xonstat/templates/map_info.mako +++ b/xonstat/templates/map_info.mako @@ -1,23 +1,189 @@ <%inherit file="base.mako"/> +<%namespace name="nav" file="nav.mako" /> +<%namespace file="navlinks.mako" import="navlinks" /> + +<%block name="navigation"> + ${nav.nav('maps')} + <%block name="title"> -% if gmap: -Map Information for ${gmap.name} - -% endif + % if gmap: + Map Information + % endif -${parent.title()} + ${parent.title()} - % if gmap is None: -

Sorry, that map wasn't found!

+

Sorry, that map wasn't found!

% else: -

Map Detail

- +

${gmap.name}

+

+ Added ${gmap.fuzzy_date()} +

+ +
+
+
Top Scoring Players
+ + + + + + + + + + <% i = 1 %> + % for (score_player_id, score_nick, score_value, _) in top_scorers: + + + % if score_player_id != '-': + + % else: + + % endif + + + <% i = i+1 %> + % endfor + +
#NickScore
${i}${score_nick|n}${score_nick}${score_value}
+
+ +
+
Most Active Players
+ + + + + + + + + + <% i = 1 %> + % for (player_id, nick, alivetime, _) in top_players: + + + % if player_id != '-': + + % else: + + % endif + + + <% i = i+1 %> + % endfor + +
#NickTime
${i}${nick|n}${nick}${alivetime}
+
+ +
+
Most Active Servers
+ + + + + + + + + + <% i = 1 %> + % for (server_id, name, times_played) in top_servers: + + + + + + <% i = i+1 %> + % endfor + +
#Name# Games
${i}${name}${times_played}
+
+
+ +
+
+ *Most active stats are from the past 7 days +
+
+ + % if len(captimes) > 0: +
+
+
Best Flag Capture Times
+ + + + + + + + + % for c in captimes: + + + + + % endfor + +
NickCaptime
+ % if c.player_id > 2: + + ${c.nick_html_colors|n} + + % else: + ${c.nick_html_colors|n} + % endif + + + ${round(float(c.fastest_cap.seconds) + (c.fastest_cap.microseconds/1000000.0), 2)} + +
+
+
+ % endif + + % if len(recent_games) > 0: +
+
+
Most Recent Games
+ + + + + + + + + + + + % for rg in recent_games: + + + + + + + + % endfor + +
TypeServerTimeWinner
View${rg.server_name}${rg.fuzzy_date} + % if rg.player_id > 2: + ${rg.nick_html_colors|n} + % else: + ${rg.nick_html_colors|n} + % endif +
+

More...

+
+
+ % endif + % endif