X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=xonstat%2Ftemplates%2Fmap_info.mako;h=b9165f19c8c4b9a62ef888d4b7272fc7b32c7961;hb=0115de9b88f8b8aa02bf278d0021c68c8a7e8ce9;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..b9165f1 --- a/xonstat/templates/map_info.mako +++ b/xonstat/templates/map_info.mako @@ -1,23 +1,191 @@ <%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} - +Map Information % endif ${parent.title()} +<%block name="css"> + ${parent.css()} + + % if gmap is None:

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 + +
#NickPlaying Time
${i}${nick|n}${nick}${alivetime}
+
+ + +
+

Most Active Servers

+ + + + + + + + + + <% i = 1 %> + % for (server_id, name, times_played) in top_servers: + + + + + + <% i = i+1 %> + % endfor + +
#NameTimes Played
${i}${name}${times_played}
+
+
+ +% 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