]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/panel/InfoWidget.js
add new infoWidget component
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 19 Aug 2016 08:47:47 +0000 (10:47 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Aug 2016 11:52:56 +0000 (13:52 +0200)
commit23fd6c539504335f53e566c35dc09010c92a8235
tree2b789e9f8519b422a4503b7125607fc0ce0a4ef5
parent9829cb0dea4e86c2b3c3f624ed5bdf9b273366d4
add new infoWidget component

this adds a new component, which is 2 labels
(left the title and right the text) with a
small progressbar

it has a method updateValue, where it takes a string and
a value from 0 to 1 and updates the right label
and the progressbar

the progressbar gets a different css class at >60% and
>90% (i added some css classes to make it yellow and red
respectively)

the warning and critical thresholds are customizable

this will be used in a new version of the statusview

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/css/ext6-pve.css
www/manager6/panel/InfoWidget.js [new file with mode: 0644]