]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Show server port, if available.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 23 Apr 2013 02:40:50 +0000 (22:40 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 23 Apr 2013 02:40:50 +0000 (22:40 -0400)
xonstat/templates/server_info.mako

index 5f54070f0e37eeb5c6eebb3df82d83aa570f2b26..f103045dc36154204b1c9fb8001653ff6c447dc5 100644 (file)
@@ -24,7 +24,13 @@ Server Information
   <div class="span12">
     <h2>${server.name}</h2>
     <p>
-      IP Address: ${server.ip_addr} <br />
+      IP Address: 
+      % if server.port is not None:
+      ${server.ip_addr}:${server.port}
+      % else:
+      ${server.ip_addr}
+      % endif
+      <br />
       Revision: ${server.revision} <br />
       Added <span class="abstime" data-epoch="${server.epoch()}" title="${server.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${server.fuzzy_date()}</span> <br />
     </p>