node: repos: render Origin logo for Debian & Proxmox

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-06-30 21:26:18 +02:00
parent 21860ea45c
commit 036f48c14d

View File

@ -300,7 +300,16 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
{
header: gettext('Origin'),
dataIndex: 'Origin',
width: 100,
width: 120,
renderer: (value, meta, rec) => {
let cls = 'fa fa-fw fa-question-circle-o';
if (value.match(/^\s*Proxmox\s*$/i)) {
cls = 'pmx-itype-icon pmx-itype-icon-proxmox-x';
} else if (value.match(/^\s*Debian\s*$/i)) {
cls = 'pmx-itype-icon pmx-itype-icon-debian-swirl';
}
return `<i class='${cls}'></i> ${value}`;
},
},
{
header: gettext('Comment'),