background-image:url(../images/icon-serial.svg);
}
+.pve-icon {
+ height: 16px;
+ background-position: bottom;
+ vertical-align: bottom;
+ padding: 0;
+}
+
/* displayfield minheight is wrong */
.x-form-display-field-default {
min-height: 20px;
items: [
{
itemId: 'cpu',
+ iconCls: 'fa fa-fw pve-itype-icon-processor pve-icon',
title: gettext('CPU usage'),
valueField: 'cpu',
maxField: 'cpuinfo',
},
{
itemId: 'wait',
+ iconCls: 'fa fa-fw fa-clock-o',
title: gettext('IO delay'),
valueField: 'wait',
rowspan: 2
},
{
itemId: 'load',
+ iconCls: 'fa fa-fw fa-tasks',
title: gettext('Load average'),
printBar: false,
textField: 'loadavg'
padding: '0 0 20 0'
},
{
+ iconCls: 'fa fa-fw pve-itype-icon-memory pve-icon',
itemId: 'memory',
title: gettext('RAM usage'),
valueField: 'memory',
padding: '0 15 10 15'
},
{
+ iconCls: 'fa fa-fw fa-hdd-o',
itemId: 'rootfs',
title: gettext('HD space') + '(root)',
valueField: 'rootfs',
renderer: PVE.Utils.render_node_size_usage
},
{
+ iconCls: 'fa fa-fw fa-refresh',
itemId: 'swap',
printSize: true,
title: gettext('SWAP usage'),
height: 300,
+ layout: {
+ type: 'vbox',
+ align: 'stretch'
+ },
+
defaults: {
xtype: 'pveInfoWidget',
- padding: '0 30 5 30',
- // parent panel is 400 wide
- // minus 2 pixels for the border
- width: 398
+ padding: '2 25'
},
items: [
{
xtype: 'box',
- height: 30
+ height: 20
},
{
itemId: 'status',
title: gettext('Status'),
+ iconCls: 'fa fa-info fa-fw',
printBar: false,
textField: 'status'
},
{
itemId: 'hamanaged',
+ iconCls: 'fa fa-heartbeat fa-fw',
title: gettext('HA State'),
printBar: false,
textField: 'ha',
},
{
itemId: 'node',
+ iconCls: 'fa fa-building fa-fw',
title: gettext('Node'),
printBar: false
},
{
xtype: 'box',
- height: 20
+ height: 15
},
{
itemId: 'cpu',
+ iconCls: 'fa fa-fw pve-itype-icon-processor pve-icon',
title: gettext('CPU usage'),
valueField: 'cpu',
maxField: 'cpus',
},
{
itemId: 'memory',
+ iconCls: 'fa fa-fw pve-itype-icon-memory pve-icon',
title: gettext('Memory usage'),
valueField: 'mem',
maxField: 'maxmem'
},
{
itemId: 'swap',
+ iconCls: 'fa fa-refresh fa-fw',
title: gettext('SWAP usage'),
valueField: 'swap',
maxField: 'maxswap'
},
{
itemId: 'rootfs',
+ iconCls: 'fa fa-hdd-o fa-fw',
title: gettext('Bootdisk size'),
valueField: 'disk',
maxField: 'maxdisk',
extend: 'PVE.panel.StatusView',
alias: 'widget.pveTemplateStatusView',
+ layout: {
+ type: 'vbox',
+ align: 'stretch'
+ },
+
defaults: {
xtype: 'pveInfoWidget',
printBar: false,
- padding: '5 0 0 20',
- width: 400
+ padding: '2 25'
},
items: [
{
xtype: 'box',
- padding: '20 0 0 0'
+ height: 20
},
{
itemId: 'node',
+ iconCls: 'fa fa-fw fa-building',
title: gettext('Node')
},
{
xtype: 'box',
- padding: '20 0 0 0'
+ height: 20
},
{
itemId: 'cpus',
+ iconCls: 'fa fa-fw pve-itype-icon-processor pve-icon',
title: gettext('Processors'),
textField: 'cpus'
},
{
itemId: 'memory',
+ iconCls: 'fa fa-fw pve-itype-icon-memory pve-icon',
title: gettext('Memory'),
textField: 'maxmem',
renderer: PVE.Utils.render_size
},
{
itemId: 'swap',
+ iconCls: 'fa fa-refresh fa-fw',
title: gettext('Swap'),
textField: 'maxswap',
renderer: PVE.Utils.render_size
},
{
itemId: 'disk',
+ iconCls: 'fa fa-hdd-o fa-fw',
title: gettext('Bootdisk size'),
textField: 'maxdisk',
renderer: PVE.Utils.render_size
},
{
xtype: 'box',
- padding: '25 0 0 0'
+ height: 20
}
],