From a52bd56522524e0defd2f135e8e3cf8be5aef57a Mon Sep 17 00:00:00 2001 From: Tom Mortensen Date: Tue, 18 Jul 2017 10:04:54 -0700 Subject: [PATCH] Added 'Description' field to VMs page. --- plugins/dynamix.vm.manager/VMMachines.page | 3 +++ .../styles/dynamix.vm.manager.css | 24 ++++++++++--------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/plugins/dynamix.vm.manager/VMMachines.page b/plugins/dynamix.vm.manager/VMMachines.page index f9c7b2ed6..f09dcd3c1 100644 --- a/plugins/dynamix.vm.manager/VMMachines.page +++ b/plugins/dynamix.vm.manager/VMMachines.page @@ -125,6 +125,7 @@ if ($action) { Name + Description CPUs Memory Hard Drives @@ -151,6 +152,7 @@ if ($action) { for ($i = 0; $i < sizeof($doms); $i++) { $name = $doms[$i]; $res = $lv->get_domain_by_name($name); + $desc = $lv->domain_get_description($res); $uuid = $lv->domain_get_uuid($res); $dom = $lv->domain_get_info($res); $id = $lv->domain_get_id($res); @@ -234,6 +236,7 @@ if ($action) { $name + $desc $vcpu $mem $disks diff --git a/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css b/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css index 89c0f0304..1a2217dc6 100644 --- a/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css +++ b/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css @@ -609,21 +609,23 @@ table.tablesorter.kvm tr:nth-child(odd){background:none;} table.tablesorter.kvm tr:nth-child(even){background:none;} table.tablesorter.kvm th:first-child{width:3%;text-align:center;} table.tablesorter.kvm td:first-child{width:3%;text-align:center;} -table.tablesorter.kvm th:nth-child(2){text-align:left;} -table.tablesorter.kvm td:nth-child(2){text-align:left;} -table.tablesorter.kvm th:nth-child(3){width:5%;text-align:center;} -table.tablesorter.kvm td:nth-child(3){width:5%;text-align:center;} -table.tablesorter.kvm th:nth-child(4){width:9%;text-align:center;} -table.tablesorter.kvm td:nth-child(4){width:9%;text-align:center;} +table.tablesorter.kvm th:nth-child(2){width:9%;text-align:left;} +table.tablesorter.kvm td:nth-child(2){width:9%;text-align:left;} +table.tablesorter.kvm th:nth-child(3){text-align:left;} +table.tablesorter.kvm td:nth-child(3){text-align:left;} +table.tablesorter.kvm th:nth-child(4){width:5%;text-align:center;} +table.tablesorter.kvm td:nth-child(4){width:5%;text-align:center;} table.tablesorter.kvm th:nth-child(5){width:9%;text-align:center;} table.tablesorter.kvm td:nth-child(5){width:9%;text-align:center;} table.tablesorter.kvm th:nth-child(6){width:9%;text-align:center;} table.tablesorter.kvm td:nth-child(6){width:9%;text-align:center;} -table.tablesorter.kvm th:nth-child(7){width:80px;text-align:center;} -table.tablesorter.kvm td:nth-child(7){width:80px;text-align:left;} -table.tablesorter.kvm th:nth-child(8){width:24px;text-align:center;} -table.tablesorter.kvm td:nth-child(8){width:24px;text-align:center;} -table.tablesorter.kvm tr>td+td+td{width:9%;white-space:nowrap;} +table.tablesorter.kvm th:nth-child(7){width:9%;text-align:center;} +table.tablesorter.kvm td:nth-child(7){width:9%;text-align:center;} +table.tablesorter.kvm th:nth-child(8){width:80px;text-align:center;} +table.tablesorter.kvm td:nth-child(8){width:80px;text-align:left;} +table.tablesorter.kvm th:nth-child(9){width:24px;text-align:center;} +table.tablesorter.kvm td:nth-child(9){width:24px;text-align:center;} +table.tablesorter.kvm tr>td+td+td+td{width:9%;white-space:nowrap;} table.tablesorter.kvm-span{margin-top:-20px;} table.tablesorter.kvm-span tr:nth-child(odd){background:none;} table.tablesorter.kvm-span tr:nth-child(even){background:none;}