ui: tape panel: add/use icons

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-03-08 14:35:28 +01:00
parent 4fb068019e
commit 3725d95c65
4 changed files with 36 additions and 2 deletions

View File

@ -2,6 +2,7 @@ include ../defines.mk
IMAGES := \ IMAGES := \
images/icon-tape.svg \ images/icon-tape.svg \
images/icon-tape-drive.svg \
images/logo-128.png \ images/logo-128.png \
images/proxmox_logo.png images/proxmox_logo.png

View File

@ -256,8 +256,7 @@ span.snapshot-comment-column {
/*' PBS specific icons */ /*' PBS specific icons */
.pbs-icon-tape .pbs-icon-tape {
{
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom; background-position: bottom;
padding: 0; padding: 0;
@ -265,3 +264,12 @@ span.snapshot-comment-column {
height: 20px; height: 20px;
background-image:url(../images/icon-tape.svg); background-image:url(../images/icon-tape.svg);
} }
.pbs-icon-tape-drive {
background-repeat: no-repeat;
background-position: bottom;
padding: 0;
background-size: 16px;
height: 20px;
background-image:url(../images/icon-tape-drive.svg);
}

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
width="100"
height="100"
version="1.1">
<rect x="2.5" y="17.5" rx="1" ry="1" width="95" height="45" stroke="black" stroke-width="6" fill="none"/>
<rect x="12.5" y="30" rx="0" ry="0" width="60" height="20" stroke="black" stroke-width="1" fill="black"/>
<!--
<circle cx="85" cy="40" r="5" stroke="black" stroke-width="3" fill="black"/>
-->
<rect x="78.5" y="35" rx="0" ry="0" width="10" height="10" stroke="black" stroke-width="1" fill="black"/>
</svg>

After

Width:  |  Height:  |  Size: 679 B

View File

@ -17,36 +17,44 @@ Ext.define('PBS.TapeManagement', {
xtype: 'pbsBackupOverview', xtype: 'pbsBackupOverview',
title: gettext('Content'), title: gettext('Content'),
itemId: 'content', itemId: 'content',
iconCls: 'fa fa-th',
}, },
{ {
xtype: 'pbsTapeInventory', xtype: 'pbsTapeInventory',
title: gettext('Inventory'), title: gettext('Inventory'),
itemId: 'inventory', itemId: 'inventory',
iconCls: 'fa fa-book',
}, },
{ {
xtype: 'pbsTapeChangerPanel', xtype: 'pbsTapeChangerPanel',
title: gettext('Changers'), title: gettext('Changers'),
itemId: 'changers', itemId: 'changers',
iconCls: 'fa fa-exchange',
}, },
{ {
xtype: 'pbsTapeDrivePanel', xtype: 'pbsTapeDrivePanel',
title: gettext('Drives'), title: gettext('Drives'),
itemId: 'drives', itemId: 'drives',
//iconCls: 'fa fa-download',
iconCls: 'pbs-icon-tape-drive',
}, },
{ {
title: gettext('Media Pools'), title: gettext('Media Pools'),
itemId: 'pools', itemId: 'pools',
xtype: 'pbsMediaPoolPanel', xtype: 'pbsMediaPoolPanel',
iconCls: 'fa fa-object-group',
}, },
{ {
xtype: 'pbsEncryptionKeys', xtype: 'pbsEncryptionKeys',
title: gettext('Encryption Keys'), title: gettext('Encryption Keys'),
itemId: 'encryption-keys', itemId: 'encryption-keys',
iconCls: 'fa fa-key',
}, },
{ {
xtype: 'pbsTapeBackupJobView', xtype: 'pbsTapeBackupJobView',
title: gettext('Backup Jobs'), title: gettext('Backup Jobs'),
itemId: 'tape-backup-jobs', itemId: 'tape-backup-jobs',
iconCls: 'fa fa-floppy-o',
}, },
], ],
}); });