From 2c6485594495e1923e95fe4bafe80401878af738 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Fri, 20 Mar 2015 18:15:02 -0400 Subject: [PATCH] Convert the map_info view. --- xonstat/templates/map_info.mako | 335 ++++++++++++++++---------------- 1 file changed, 166 insertions(+), 169 deletions(-) diff --git a/xonstat/templates/map_info.mako b/xonstat/templates/map_info.mako index 5fd152d..166cb86 100644 --- a/xonstat/templates/map_info.mako +++ b/xonstat/templates/map_info.mako @@ -3,195 +3,192 @@ <%namespace file="navlinks.mako" import="navlinks" /> <%block name="navigation"> -${nav.nav('maps')} + ${nav.nav('maps')} <%block name="title"> -% if gmap: -Map Information -% endif + % if gmap: + Map Information + % endif -${parent.title()} + ${parent.title()} <%block name="css"> - ${parent.css()} - + ${parent.css()} + % 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

- - - - - - - - - +

${gmap.name}

+

+ Added ${gmap.fuzzy_date()} +

+ +
+
+
Top Scoring Players
+
#NickScore
+ + + + + + + + + <% 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 (score_player_id, score_nick, score_value) in top_scorers: - - - % if score_player_id != '-': - - % else: - - % endif - - - <% i = i+1 %> + % for (player_id, nick, alivetime) in top_players: + + + % if player_id != '-': + + % else: + + % endif + + + <% i = i+1 %> % endfor -
#NickTime
${i}${score_nick|n}${score_nick}${score_value}
${i}${nick|n}${nick}${alivetime}
-
- - -
-

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 - -
#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)} - -
+ +
+ +
+
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 +
- -% endif - -% if len(recent_games) > 0: -
-
-

Most Recent Games

- - - - - - - - - - - - % for rg in recent_games: - - - - - - +
TypeServerTimeWinner
View${rg.server_name}${rg.fuzzy_date} - % if rg.player_id > 2: - ${rg.nick_html_colors|n} + % 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: - ${rg.nick_html_colors|n} + ${c.nick_html_colors|n} % endif -
+ + ${round(float(c.fastest_cap.seconds) + (c.fastest_cap.microseconds/1000000.0), 2)} + +
-

More...

+
+
- -% endif - + % 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 -- 2.39.2