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 name="css"> + ${parent.css()} + + % 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

- +
- - - + + + @@ -45,9 +55,9 @@ Server Information % if score_player_id != '-': - + % else: - + % endif @@ -60,12 +70,12 @@ Server Information

Most Active Players

-
#NickScore#NickScore
${i}${score_nick|n}${score_nick|n}${score_nick}${score_nick}${score_value}
+
- - - + + + @@ -74,9 +84,9 @@ Server Information % if player_id != '-': - + % else: - + % endif @@ -89,12 +99,12 @@ Server Information

Most Active Maps

-
#NickPlaying Time#NickPlaying Time
${i}${nick|n}${nick|n}${nick}${nick}${alivetime}
+
- - - + + + @@ -103,9 +113,9 @@ Server Information % if map_id != '-': - + % else: - + % endif @@ -116,13 +126,18 @@ Server Information +
+
+

*Most active stats are from the past 7 days

+
+
- +% if len(recent_games) > 0:
-

Recent Games

-
#Map# Games#Map# Games
${i}${name}${name}${name}${name}${count}
+

Most Recent Games

+
@@ -135,11 +150,11 @@ Server Information % for rg in recent_games: - - + + - - +
View${rg.game_type_cd}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