summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates/locations.html
diff options
context:
space:
mode:
authorSimon Rettberg2020-05-19 15:37:44 +0200
committerSimon Rettberg2020-07-30 13:25:36 +0200
commit259b1c8bbb3617c65a9ed073ed340acade32c543 (patch)
tree2690c6669bce6c55c5d49ef99e57333fe6d9b254 /modules-available/locations/templates/locations.html
parent[locationinfo] Make colors for idle clients more distinct from offline (diff)
downloadslx-admin-259b1c8bbb3617c65a9ed073ed340acade32c543.tar.gz
slx-admin-259b1c8bbb3617c65a9ed073ed340acade32c543.tar.xz
slx-admin-259b1c8bbb3617c65a9ed073ed340acade32c543.zip
[locations] Show colored bars for used/idle/offline in overview
Diffstat (limited to 'modules-available/locations/templates/locations.html')
-rw-r--r--modules-available/locations/templates/locations.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html
index e2224bc0..7adfe2fc 100644
--- a/modules-available/locations/templates/locations.html
+++ b/modules-available/locations/templates/locations.html
@@ -71,10 +71,10 @@
</span>
{{/havestatistics}}
</td>
- <td class="text-nowrap" align="right">
- {{#havestatistics}}
- {{clientLoad}}
- {{/havestatistics}}
+ <td class="text-nowrap load-col" {{#clientCount}} style="background:linear-gradient(to right, #f97, #f97 {{clientLoad}}%, #6fa {{clientLoad}}%, #6fa {{clientIdle}}%, #eee {{clientIdle}}%)"{{/clientCount}}>
+ {{#clientCount}}
+ {{clientLoad}}&thinsp;%
+ {{/clientCount}}
</td>
<td class="text-nowrap {{overriddenClass}}">
{{#havebaseconfig}}
@@ -125,8 +125,10 @@
</a>
<span style="display:inline-block;width:5ex"></span>
</td>
- <td class="text-nowrap" align="right">
- {{unassignedLoad}}
+ <td class="text-nowrap load-col"{{#unassignedCount}} style="background:linear-gradient(to right, #f97, #f97 {{unassignedLoad}}%, #6fa {{unassignedLoad}}%, #6fa {{unassignedIdle}}%, #eee {{unassignedIdle}}%)"{{/unassignedCount}}>
+ {{#unassignedCount}}
+ {{unassignedLoad}}&thinsp;%
+ {{/unassignedCount}}
</td>
<td>
{{#unassignedOverrides}}