X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmap_info.mako;h=c58f74a642f8d5827eef9888a1df0573ef46b554;hb=40ce03905c7693f17564906def643115e178ebe9;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>
<%block name="title">
-% if gmap:
-Map Information for ${gmap.name} -
-% endif
+ % if gmap:
+ Map Information
+ % endif
-${parent.title()}
+ ${parent.title()}
%block>
-
% if gmap is None:
-
Sorry, that map wasn't found!
+ 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 |
+ 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 |
+ # Games |
+
+
+
+ <% i = 1 %>
+ % for (server_id, name, times_played) in top_servers:
+
+ ${i} |
+ ${name} |
+ ${times_played} |
+
+ <% i = i+1 %>
+ % endfor
+
+
+
+
+
+
+
+ *Most active stats are from the past 7 days
+
+
+
+ % 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