diff options
author | Simon Rettberg | 2020-05-19 15:37:44 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-07-30 13:25:36 +0200 |
commit | 259b1c8bbb3617c65a9ed073ed340acade32c543 (patch) | |
tree | 2690c6669bce6c55c5d49ef99e57333fe6d9b254 /modules-available/locations/templates/locations.html | |
parent | [locationinfo] Make colors for idle clients more distinct from offline (diff) | |
download | slx-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.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}} |