X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmap_info.mako;h=339525cde4a8c1405e76b2ca67380560313faac0;hp=abbd4b0a80906f9b17ca609b232f32e11b6adde6;hb=e9a2749acba912de98b68328a51a32045a604b5d;hpb=c9a891fdb40cdcf72d75e23c5f5565a30ffd4c84
diff --git a/xonstat/templates/map_info.mako b/xonstat/templates/map_info.mako
index abbd4b0..339525c 100644
--- a/xonstat/templates/map_info.mako
+++ b/xonstat/templates/map_info.mako
@@ -3,189 +3,187 @@
<%namespace file="navlinks.mako" import="navlinks" />
<%block name="navigation">
-${nav.nav('maps')}
+ ${nav.nav('maps')}
%block>
<%block name="title">
-% if gmap:
-Map Information
-% endif
-
-${parent.title()}
-%block>
+ % if gmap:
+ Map Information
+ % endif
-<%block name="css">
- ${parent.css()}
-
+ ${parent.title()}
%block>
% if gmap is None:
-
Sorry, that map wasn't found!
+ Sorry, that map wasn't found!
% else:
-${gmap.name}
-
- Added ${gmap.fuzzy_date()}
-
-
-
-
Top Scoring Players
-
-
-
- # |
- Nick |
- Score |
-
-
-
+ ${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 (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 %>
+ % for (player_id, nick, alivetime) in top_players:
+
+ ${i} |
+ % if player_id != '-':
+ ${nick|n} |
+ % else:
+ ${nick} |
+ % endif
+ ${alivetime} |
+
+ <% 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 |
+ # Games |
+
+
+
+ <% i = 1 %>
+ % for (server_id, name, times_played) in top_servers:
+
+ ${i} |
+ ${name} |
+ ${times_played} |
+
+ <% 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
-
+
+
+ *Most active stats are from the past 7 days
+
-
-% endif
-
-% if len(recent_games) > 0:
-
-
-% endif
+ % 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