diff options
author | Simon Rettberg | 2020-05-19 15:37:44 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-05-19 15:37:44 +0200 |
commit | c2e20fb1b18119eb98052661bbefae88f045b0cc (patch) | |
tree | 54d8b0600504119603fb4b286bcd60e00db04ebe /modules-available/locations/templates/locations.html | |
parent | [locationinfo] Make colors for idle clients more distinct from offline (diff) | |
download | slx-admin-c2e20fb1b18119eb98052661bbefae88f045b0cc.tar.gz slx-admin-c2e20fb1b18119eb98052661bbefae88f045b0cc.tar.xz slx-admin-c2e20fb1b18119eb98052661bbefae88f045b0cc.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.html | 14 |
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}} % + {{/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}} % + {{/unassignedCount}} </td> <td> {{#unassignedOverrides}} |