mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 20:31:47 +00:00
correctly display lxc templates
This commit is contained in:
parent
62fb1d2d65
commit
b8d5dcf5ae
@ -236,15 +236,17 @@ sub update_lxc_status {
|
||||
|
||||
foreach my $vmid (keys %$vmstatus) {
|
||||
my $d = $vmstatus->{$vmid};
|
||||
my $template = $d->{template} ? $d->{template} : "0";
|
||||
my $data;
|
||||
if ($d->{status} eq 'running') { # running
|
||||
$data = "$d->{uptime}:$d->{name}:$d->{status}:0:$ctime:$d->{cpus}:$d->{cpu}:" .
|
||||
$data = "$d->{uptime}:$d->{name}:$d->{status}:$template:" .
|
||||
"$ctime:$d->{cpus}:$d->{cpu}:" .
|
||||
"$d->{maxmem}:$d->{mem}:" .
|
||||
"$d->{maxdisk}:$d->{disk}:" .
|
||||
"$d->{netin}:$d->{netout}:" .
|
||||
"$d->{diskread}:$d->{diskwrite}";
|
||||
} else {
|
||||
$data = "0:$d->{name}:$d->{status}:0:$ctime:$d->{cpus}::" .
|
||||
$data = "0:$d->{name}:$d->{status}:$template:$ctime:$d->{cpus}::" .
|
||||
"$d->{maxmem}::" .
|
||||
"$d->{maxdisk}:$d->{disk}:" .
|
||||
":::";
|
||||
|
@ -50,6 +50,7 @@
|
||||
.pve-itype-icon-qemu-template,
|
||||
.pve-itype-icon-qemu-running,
|
||||
.pve-itype-icon-lxc,
|
||||
.pve-itype-icon-lxc-template,
|
||||
.pve-itype-icon-lxc-running,
|
||||
.pve-itype-icon-node,
|
||||
.pve-itype-icon-node-running,
|
||||
@ -90,6 +91,13 @@
|
||||
background-image:url(../images/lxc-off.png);
|
||||
}
|
||||
|
||||
.pve-itype-icon-lxc-template,
|
||||
.x-tree-node-lxc-template,
|
||||
.x-grid-tree-node-expanded .x-tree-node-lxc-template
|
||||
{
|
||||
background-image:url(../images/computer-template.png);
|
||||
}
|
||||
|
||||
.pve-itype-icon-lxc-running,
|
||||
.x-tree-node-lxc-running,
|
||||
.x-grid-tree-node-expanded .x-tree-node-lxc-running
|
||||
|
Loading…
Reference in New Issue
Block a user