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>
<%block name="title">
% if gmap:
-Map Information for ${gmap.name} -
+Map Information
% endif
${parent.title()}
%block>
+<%block name="css">
+ ${parent.css()}
+
+%block>
% if gmap is None:
Sorry, that map wasn't found!
% else:
-Map Detail
-
- - ID: ${gmap.map_id}
- - Name: ${gmap.name}
- - PK3 Name: ${gmap.pk3_name}
- - Curl URL: ${gmap.curl_url}
-
+${gmap.name}
+
+ Added ${gmap.fuzzy_date()}
+
+
+
+
Top Scoring Players
+
+
+
+ # |
+ Nick |
+ Score |
+
+
+
+ <% i = 1 %>
+ % for (score_player_id, score_nick, score_value) in top_scorers:
+
+ ${i} |
+ % if score_player_id != '-':
+ ${score_nick|n} |
+ % else:
+ ${score_nick} |
+ % endif
+ ${score_value} |
+
+ <% i = i+1 %>
+ % endfor
+
+
+
+
+
+
+
Most Active Players
+
+
+
+ # |
+ Nick |
+ Playing Time |
+
+
+
+ <% i = 1 %>
+ % for (player_id, nick, alivetime) in top_players:
+
+ ${i} |
+ % if player_id != '-':
+ ${nick|n} |
+ % else:
+ ${nick} |
+ % endif
+ ${alivetime} |
+
+ <% i = i+1 %>
+ % endfor
+
+
+
+
+
+
+
Most Active Servers
+
+
+
+ # |
+ Name |
+ Times Played |
+
+
+
+ <% i = 1 %>
+ % for (server_id, name, times_played) in top_servers:
+
+ ${i} |
+ ${name} |
+ ${times_played} |
+
+ <% i = i+1 %>
+ % endfor
+
+
+
+
+
+% if len(captimes) > 0:
+
+
+
Best Flag Capture Times
+
+
+
+% endif
+
+
+% if len(recent_games) > 0:
+
+
+
Most Recent Games
+
+
+
+ |
+ Type |
+ Server |
+ Time |
+ Winner |
+
+
+
+ % for rg in recent_games:
+
+ View |
+ |
+ ${rg.server_name} |
+ ${rg.fuzzy_date} |
+
+ % if rg.player_id > 2:
+ ${rg.nick_html_colors|n}
+ % else:
+ ${rg.nick_html_colors|n}
+ % endif
+ |
+
+ % endfor
+
+
+
More...
+
+
+% endif
+
+
% endif