summaryrefslogtreecommitdiffstats
path: root/modules-available/dnbd3/templates
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-13 23:44:39 +0100
committerSimon Rettberg2017-11-13 23:44:39 +0100
commitf8e86ae55fb0843477b8fa52b9c2f9b908d05195 (patch)
tree58d9307ce6d9f427b9f301ee9f212b17639ce404 /modules-available/dnbd3/templates
parent[inc/Taskmanager] Fix phpdoc (diff)
downloadslx-admin-f8e86ae55fb0843477b8fa52b9c2f9b908d05195.tar.gz
slx-admin-f8e86ae55fb0843477b8fa52b9c2f9b908d05195.tar.xz
slx-admin-f8e86ae55fb0843477b8fa52b9c2f9b908d05195.zip
[dnbd3] Extend server details page (altservers, config)
Diffstat (limited to 'modules-available/dnbd3/templates')
-rw-r--r--modules-available/dnbd3/templates/page-proxy-altservers.html36
-rw-r--r--modules-available/dnbd3/templates/page-proxy-clients.html (renamed from modules-available/dnbd3/templates/page-clientlist.html)0
-rw-r--r--modules-available/dnbd3/templates/page-proxy-config.html4
-rw-r--r--modules-available/dnbd3/templates/page-proxy-header.html (renamed from modules-available/dnbd3/templates/page-header-servername.html)0
-rw-r--r--modules-available/dnbd3/templates/page-proxy-loclist.html (renamed from modules-available/dnbd3/templates/page-client-loclist.html)0
-rw-r--r--modules-available/dnbd3/templates/page-proxy-stats.html9
-rw-r--r--modules-available/dnbd3/templates/page-serverlist.html30
7 files changed, 66 insertions, 13 deletions
diff --git a/modules-available/dnbd3/templates/page-proxy-altservers.html b/modules-available/dnbd3/templates/page-proxy-altservers.html
new file mode 100644
index 00000000..00a884cc
--- /dev/null
+++ b/modules-available/dnbd3/templates/page-proxy-altservers.html
@@ -0,0 +1,36 @@
+<div class="col-md-6">
+ <h2>{{lang_altservers}}</h2>
+ <table class="table table-condensed">
+ <tr>
+ <th>{{lang_proxyServerTHead}}</th>
+ <th>{{lang_numFails}}</th>
+ <th class="text-right">{{lang_latency}}</th>
+ <th>{{lang_flags}}</th>
+ <th>{{lang_comment}}</th>
+ </tr>
+ {{#altservers}}
+ <tr>
+ <td class="text-nowrap">{{host}}</td>
+ <td>
+ {{^isClientOnly}}
+ {{numFails}}
+ {{/isClientOnly}}
+ </td>
+ <td class="text-right text-nowrap">
+ {{^isClientOnly}}
+ {{rtt}}&thinsp;ms
+ {{/isClientOnly}}
+ </td>
+ <td>
+ {{#isClientOnly}}
+ [CO]
+ {{/isClientOnly}}
+ {{#isPrivate}}
+ [PO]
+ {{/isPrivate}}
+ </td>
+ <td><table class="slx-ellipsis"><tr><td>{{comment}}</td></tr></table></td>
+ </tr>
+ {{/altservers}}
+ </table>
+</div> \ No newline at end of file
diff --git a/modules-available/dnbd3/templates/page-clientlist.html b/modules-available/dnbd3/templates/page-proxy-clients.html
index 9e7cec4c..9e7cec4c 100644
--- a/modules-available/dnbd3/templates/page-clientlist.html
+++ b/modules-available/dnbd3/templates/page-proxy-clients.html
diff --git a/modules-available/dnbd3/templates/page-proxy-config.html b/modules-available/dnbd3/templates/page-proxy-config.html
new file mode 100644
index 00000000..adc73a57
--- /dev/null
+++ b/modules-available/dnbd3/templates/page-proxy-config.html
@@ -0,0 +1,4 @@
+<div class="col-md-6">
+ <h2>{{lang_proxyConfig}}</h2>
+ <pre>{{config}}</pre>
+</div> \ No newline at end of file
diff --git a/modules-available/dnbd3/templates/page-header-servername.html b/modules-available/dnbd3/templates/page-proxy-header.html
index 6f3f1b7f..6f3f1b7f 100644
--- a/modules-available/dnbd3/templates/page-header-servername.html
+++ b/modules-available/dnbd3/templates/page-proxy-header.html
diff --git a/modules-available/dnbd3/templates/page-client-loclist.html b/modules-available/dnbd3/templates/page-proxy-loclist.html
index 67c90683..67c90683 100644
--- a/modules-available/dnbd3/templates/page-client-loclist.html
+++ b/modules-available/dnbd3/templates/page-proxy-loclist.html
diff --git a/modules-available/dnbd3/templates/page-proxy-stats.html b/modules-available/dnbd3/templates/page-proxy-stats.html
new file mode 100644
index 00000000..e7811028
--- /dev/null
+++ b/modules-available/dnbd3/templates/page-proxy-stats.html
@@ -0,0 +1,9 @@
+<div class="panel panel-default">
+ <div class="panel-body">
+ {{lang_sessionTx}}: <b>{{bytesSent_s}}</b>
+ ––
+ {{lang_sessionRx}}: <b>{{bytesReceived_s}}</b>
+ ––
+ {{lang_uptime}}: <b>{{uptime_s}}</b>
+ </div>
+</div> \ No newline at end of file
diff --git a/modules-available/dnbd3/templates/page-serverlist.html b/modules-available/dnbd3/templates/page-serverlist.html
index 1a4d8255..c5905dcd 100644
--- a/modules-available/dnbd3/templates/page-serverlist.html
+++ b/modules-available/dnbd3/templates/page-serverlist.html
@@ -15,9 +15,13 @@
<form method="post" action="?do=dnbd3">
<input type="hidden" name="token" value="{{token}}">
<div class="checkbox">
- <input id="enable-dnbd3" type="checkbox" name="enabled" {{checked_s}}>
+ <input id="enable-dnbd3" type="checkbox" name="enabled" {{enabled_checked_s}}>
<label for="enable-dnbd3">{{lang_enableDnbd3}}</label>
</div>
+ <div class="checkbox">
+ <input id="allow-nfs" type="checkbox" name="with-nfs" {{nfs_checked_s}}>
+ <label for="allow-nfs">{{lang_allowNfsFallback}}</label>
+ </div>
<button type="submit" name="action" value="toggle-usage" class="btn btn-success">
<span class="glyphicon glyphicon-floppy-disk"></span>
{{lang_save}}
@@ -58,7 +62,7 @@
<tbody>
{{#list}}
<tr>
- <td class="text-right">
+ <td class="text-right text-nowrap">
{{#slxOk}}
<span class="glyphicon glyphicon-ok text-success"></span>
{{/slxOk}}
@@ -73,11 +77,16 @@
{{/uptime}}
</td>
<td class="{{#self}}slx-bold{{/self}}">
- {{fixedip}}
{{#machineuuid}}
- <a href="?do=Statistics&uuid={{machineuuid}}">{{clientip}}</a>
- <div class="small">{{hostname}}</div>
+ <a class="pull-right btn btn-default btn-xs" href="?do=Statistics&uuid={{machineuuid}}">
+ <span class="glyphicon glyphicon-eye-open"></span>
+ </a>
{{/machineuuid}}
+ <a href="?do=dnbd3&amp;show=proxy&amp;server={{serverid}}">
+ {{fixedip}}
+ <span class="small">{{clientip}}</span>
+ </a>
+ <div class="small">{{hostname}}</div>
</td>
<td data-sort="int" data-sort-default="desc" data-sort-value="{{disktotal}}">
<div style="border:1px solid #ddd;background:linear-gradient(to right, #f85 {{diskUsePercent}}%, transparent {{diskUsePercent}}%)"
@@ -92,12 +101,7 @@
{{/errormsg}}
</td>
<td data-sort="int" data-sort-default="desc" class="text-right">
- {{#uptime}}
- <a href="?do=dnbd3&amp;show=clients&amp;server={{serverid}}">{{clientcount}}</a>
- {{/uptime}}
- {{^uptime}}
- -
- {{/uptime}}
+ {{clientcount}}
</td>
<td data-sort="int" data-sort-default="desc" data-sort-value="{{dnbd3lastseen}}" class="text-right text-nowrap">
{{dnbd3lastseen_s}}
@@ -124,7 +128,7 @@
</a>
{{/self}}
</td>
- <td class="text-right">
+ <td class="text-right text-nowrap">
{{#machineuuid}}
{{#rebootcontrol}}
<button class="btn btn-warning btn-xs reboot-btn" type="button" data-id="{{serverid}}"
@@ -241,7 +245,7 @@
<h4 class="modal-title"><b>{{lang_rebootProxyHeading}}</b></h4>
</div>
<div class="modal-body">
- <p>{{lang_rebootServerText}}</p>
+ <p>{{lang_rebootProxyText}}</p>
<p id="reboot-status"></p>
</div>
<div class="modal-footer text-right">