X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fserver_info.mako;h=f103045dc36154204b1c9fb8001653ff6c447dc5;hb=56b928c935f3114a3d9c12c2f97c15d45b0f293e;hp=74020354342872c1094cc19c33a6b7fbfd433196;hpb=ead7ee043256468fdc701f0534912f37450490e7;p=xonotic%2Fxonstat.git
diff --git a/xonstat/templates/server_info.mako b/xonstat/templates/server_info.mako
index 7402035..f103045 100644
--- a/xonstat/templates/server_info.mako
+++ b/xonstat/templates/server_info.mako
@@ -11,6 +11,10 @@ Server Information
% endif
%block>
+<%block name="css">
+ ${parent.css()}
+
+%block>
% if server is None:
Sorry, that server wasn't found!
@@ -20,7 +24,13 @@ Server Information
${server.name}
- IP Address: ${server.ip_addr}
+ 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()}
@@ -31,12 +41,12 @@ Server Information
Top Scoring Players
-
+
- # |
- Nick |
- Score |
+ # |
+ Nick |
+ Score |
@@ -45,9 +55,9 @@ Server Information
${i} |
% if score_player_id != '-':
- ${score_nick|n} |
+ ${score_nick|n} |
% else:
- ${score_nick} |
+ ${score_nick} |
% endif
${score_value} |
@@ -60,12 +70,12 @@ Server Information
Most Active Players
-
+
- # |
- Nick |
- Playing Time |
+ # |
+ Nick |
+ Playing Time |
@@ -74,9 +84,9 @@ Server Information
${i} |
% if player_id != '-':
- ${nick|n} |
+ ${nick|n} |
% else:
- ${nick} |
+ ${nick} |
% endif
${alivetime} |
@@ -89,12 +99,12 @@ Server Information
Most Active Maps
-
+
- # |
- Map |
- # Games |
+ # |
+ Map |
+ # Games |
@@ -103,9 +113,9 @@ Server Information
${i} |
% if map_id != '-':
- ${name} |
+ ${name} |
% else:
- ${name} |
+ ${name} |
% endif
${count} |
@@ -116,13 +126,18 @@ Server Information
+
+
+
*Most active stats are from the past 7 days
+
+
-
+% if len(recent_games) > 0:
-
Recent Games
-
+ Most Recent Games
+
|
@@ -135,11 +150,11 @@ Server Information
% for rg in recent_games:
- View |
- |
+ View |
+ |
${rg.map_name} |
- ${rg.fuzzy_date} |
-
+ | ${rg.fuzzy_date} |
+
% if rg.player_id > 2:
${rg.nick_html_colors|n}
% else:
@@ -150,8 +165,10 @@ Server Information
% endfor
|
+ More...
+% endif
% endif