projects
/
xonotic
/
xonstat.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a26b385
)
Show server port, if available.
author
Ant Zucaro <azucaro@gmail.com>
Tue, 23 Apr 2013 02:40:50 +0000
(22:40 -0400)
committer
Ant Zucaro <azucaro@gmail.com>
Tue, 23 Apr 2013 02:40:50 +0000
(22:40 -0400)
xonstat/templates/server_info.mako
patch
|
blob
|
history
diff --git
a/xonstat/templates/server_info.mako
b/xonstat/templates/server_info.mako
index
5f54070
..
f103045
100644
(file)
--- a/
xonstat/templates/server_info.mako
+++ b/
xonstat/templates/server_info.mako
@@
-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>