diff options
author | Simon Rettberg | 2021-03-09 15:00:34 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-03-09 15:00:34 +0100 |
commit | ec7ee2fc7ecee525b955d2842eb192992e9b6bda (patch) | |
tree | 3837554e4859eb86eef2127328fde8a5943ce7af /modules-available | |
parent | [remoteaccess] Allow changing client-side VNC port (diff) | |
download | slx-admin-ec7ee2fc7ecee525b955d2842eb192992e9b6bda.tar.gz slx-admin-ec7ee2fc7ecee525b955d2842eb192992e9b6bda.tar.xz slx-admin-ec7ee2fc7ecee525b955d2842eb192992e9b6bda.zip |
[dnbd3] Show version information in proxy/server details
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/dnbd3/inc/dnbd3rpc.inc.php | 2 | ||||
-rw-r--r-- | modules-available/dnbd3/templates/page-proxy-stats.html | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/modules-available/dnbd3/inc/dnbd3rpc.inc.php b/modules-available/dnbd3/inc/dnbd3rpc.inc.php index 6e7480c0..1a1e9f5c 100644 --- a/modules-available/dnbd3/inc/dnbd3rpc.inc.php +++ b/modules-available/dnbd3/inc/dnbd3rpc.inc.php @@ -43,7 +43,7 @@ class Dnbd3Rpc { $server = self::translateServer($server); $url = 'http://' . $server . '/query?'; if ($stats) { - $url .= 'q=stats&'; + $url .= 'q=stats&q=version&'; } if ($clients) { $url .= 'q=clients&'; diff --git a/modules-available/dnbd3/templates/page-proxy-stats.html b/modules-available/dnbd3/templates/page-proxy-stats.html index 9c3a4a84..4bc411d1 100644 --- a/modules-available/dnbd3/templates/page-proxy-stats.html +++ b/modules-available/dnbd3/templates/page-proxy-stats.html @@ -1,7 +1,10 @@ <div class="panel panel-default"> <div class="panel-body"> - <div class="pull-right"> - {{lang_uptime}}: <b>{{uptime_s}}</b> + <div class="pull-right text-right"> + {{#version}} + <div>{{version}}</div> + {{/version}} + <div>{{lang_uptime}}: <b>{{uptime_s}}</b></div> </div> <div> {{lang_sessionTx}}: <b>{{bytesSent_s}}</b> |