From 8c78b85734459381aa1a4e01d91fa6aea9267873 Mon Sep 17 00:00:00 2001 From: Tlams Date: Mon, 19 Feb 2018 11:45:22 +0000 Subject: [PATCH] Change and insert news directs links --- code/web/www/pages/requires/functions.php | 31 +++++++++++++++-------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/code/web/www/pages/requires/functions.php b/code/web/www/pages/requires/functions.php index b1326f6..256f20d 100755 --- a/code/web/www/pages/requires/functions.php +++ b/code/web/www/pages/requires/functions.php @@ -217,11 +217,16 @@ class API_Gen_HTML '.$qemu->cluster.' - '.$qemu->node.' - - - ExternalProxmoxLink - '.$qemu->name.' + + '.$qemu->node.' + + ExternalProxmoxLink + + + '.$qemu->name.' + + ExternalProxmoxLink + '.$qemu->type.' '.$qemu->vmid.' '.formatBytes(round($qemu->maxmem)).' @@ -309,16 +314,19 @@ class API_Gen_HTML $eligibility = eligibility($ram_use_percent, $ram_alloc_percent, $cpu_alloc_percent, $disk_use_percent, $disk_alloc_percent, $load_percent); - + if (in_array($node->node, $row_non_grata)) { - $grata = ' Nongrataimg'; + //$grata = ' Nongrataimg'; $eligibility = round($eligibility + $non_grata_weight); } + /* else{ $grata = ' Nongrataimg'; } - - + */ + + $grata = ""; + $html = $html.' @@ -412,7 +420,10 @@ class API_Gen_HTML $html = $html.' - '.$sto->node.' ExternalProxmoxLink + + '.$sto->node.' + + ExternalProxmoxLink '.$sto->storage.' '.formatBytes($sto->total).' '.formatBytes($sto->totalallocdisk).' ('.$disk_alloc_percent.'%)