From 63285038309718574f1e9a168c323974293bb681 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 18 Mar 2015 07:03:06 -0400 Subject: [PATCH] Initial conversion of the server_info view. --- xonstat/templates/server_info.mako | 256 ++++++++++++++--------------- 1 file changed, 126 insertions(+), 130 deletions(-) diff --git a/xonstat/templates/server_info.mako b/xonstat/templates/server_info.mako index f103045..ae793df 100644 --- a/xonstat/templates/server_info.mako +++ b/xonstat/templates/server_info.mako @@ -2,51 +2,51 @@ <%namespace name="nav" file="nav.mako" /> <%block name="navigation"> -${nav.nav('servers')} + ${nav.nav('servers')} <%block name="title"> -% if server: -Server Information -% endif + % if server: + Server Information + % endif <%block name="css"> - ${parent.css()} - + ${parent.css()} + % if server is None: -

Sorry, that server wasn't found!

+

Sorry, that server wasn't found!

% else: -
-
-

${server.name}

-

- IP Address: - % if server.port is not None: - ${server.ip_addr}:${server.port} - % else: - ${server.ip_addr} - % endif -
- Revision: ${server.revision}
- Added ${server.fuzzy_date()}
-

+
+
+

${server.name}

+

+ IP Address: + % if server.port is not None: + ${server.ip_addr}:${server.port} + % else: + ${server.ip_addr} + % endif +
+ Revision: ${server.revision}
+ Added ${server.fuzzy_date()}
+

+
-
-
-
-

Top Scoring Players

- +
+
+
Top Scoring Players
+
- - - + + + @@ -55,120 +55,116 @@ Server Information % if score_player_id != '-': - + % else: - + % endif - <% i = i+1 %> + <% i = i+1 %> % endfor
#NickScore#NickScore
${i}${score_nick|n}${score_nick|n}${score_nick}${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 Maps

- - - - - - - - - - <% i = 1 %> - % for (map_id, name, count) in top_maps: - - - % if map_id != '-': - - % else: - - % endif - - - <% i = i+1 %> - % endfor - -
#Map# Games
${i}${name}${name}${count}
-
- -
-
-
-

*Most active stats are from the past 7 days

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

Most Recent Games

- - - - - - - - - - - - % for rg in recent_games: - - - - - - +
TypeMapTimeWinner
View${rg.map_name}${rg.fuzzy_date} - % if rg.player_id > 2: - ${rg.nick_html_colors|n} +
+
Most Active Maps
+ + + + + + + + + + <% i = 1 %> + % for (map_id, name, count) in top_maps: + + + % if map_id != '-': + % else: - ${rg.nick_html_colors|n} + % endif - - + + + <% i = i+1 %> % endfor - -
#Map# Games
${i}${name}${name}
${count}
-

More...

+
+
+
+ +
+
+ *Most active stats are from the past 7 days +
- -% endif + % if len(recent_games) > 0: +
+
+
Most Recent Games
+ + + + + + + + + + + + % for rg in recent_games: + + + + + + + + % endfor + +
TypeMapTimeWinner
View${rg.map_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