summaryrefslogtreecommitdiffstats
path: root/modules-available/dnbd3
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-31 15:34:17 +0200
committerSimon Rettberg2022-05-31 15:34:17 +0200
commitc5b49b9f842af0b18b0376df89d795b1684ce298 (patch)
tree61c5d9411aeec36c047d597298805b7346c4e34e /modules-available/dnbd3
parent[rebootcontrol] Make machines clickable in wol/reboot/exec status page (diff)
downloadslx-admin-c5b49b9f842af0b18b0376df89d795b1684ce298.tar.gz
slx-admin-c5b49b9f842af0b18b0376df89d795b1684ce298.tar.xz
slx-admin-c5b49b9f842af0b18b0376df89d795b1684ce298.zip
[dnbd3] Hide speed bar for offline servers
Diffstat (limited to 'modules-available/dnbd3')
-rw-r--r--modules-available/dnbd3/templates/page-serverlist.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules-available/dnbd3/templates/page-serverlist.html b/modules-available/dnbd3/templates/page-serverlist.html
index b5588fc0..8303a2b4 100644
--- a/modules-available/dnbd3/templates/page-serverlist.html
+++ b/modules-available/dnbd3/templates/page-serverlist.html
@@ -2,7 +2,8 @@
<p><i>{{lang_dnbd3IntroText}}</i></p>
<style>
- .shd { text-shadow: #fff 1px 1px 2px }
+ .shd { text-shadow: #fff 1px 1px 2px; border:1px solid #ddd; min-width:100px; }
+ .shd:empty { display: none; }
#speed-graph { width: 100%; height: 100px; margin: 3px; border-radius: 3px; }
</style>
@@ -58,7 +59,7 @@
<th>{{lang_proxyServerTHead}}</th>
<th class="text-right">{{lang_storageSize}}</th>
<th class="text-right">{{lang_clientCount}}</th>
- <th>{{lang_uploadSpeed}}</th>
+ <th style="min-width:116px">{{lang_uploadSpeed}}</th>
<th class="text-right">{{lang_lastSeen}}</th>
<th class="text-right">{{lang_uptime}}</th>
<th class="text-right">{{lang_txTotal}}</th>
@@ -102,7 +103,7 @@
<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}}%)"
+ <div style="background:linear-gradient(to right, #f85 {{diskUsePercent}}%, transparent {{diskUsePercent}}%)"
class="text-center text-nowrap shd"
title="{{lang_diskFree}}: {{diskfree_s}}">
{{disktotal_s}}
@@ -117,7 +118,7 @@
{{clientcount}}
</td>
<td data-sort="int" data-sort-default="desc" class="text-right text-nowrap">
- <div id="upspeed-{{serverid}}" style="display:inline-block;min-width:100px;border:1px solid #ddd" class="text-center text-nowrap shd"></div>
+ <div id="upspeed-{{serverid}}" class="text-center text-nowrap shd"></div>
</td>
<td data-sort="int" data-sort-default="desc" data-sort-value="{{dnbd3lastseen}}" class="text-right text-nowrap">
{{dnbd3lastseen_s}}
@@ -559,7 +560,6 @@ document.addEventListener('DOMContentLoaded', function () {
}
gctx.stroke();
};
- // <span style="border-radius:5px;display:inline-block;background:red;width:10px;height:10px"></span>
});
//--></script> \ No newline at end of file