Refactor and enhance code readability across multiple components

- Updated SQL query in `VMs-Backups.php` to include `policy` condition.
- Improved formatting and indentation in `StdOut-detail.php`, `StdOut.php`, and `Server-Detail.php`.
- Simplified conditional checks and removed redundant spaces for better clarity.
- Modified `.idea/sqldialects.xml` file to add new SQL dialect mappings.
This commit is contained in:
e025532
2025-06-26 10:57:39 +02:00
parent b19795f421
commit 4b90b1ee5c
5 changed files with 13 additions and 21 deletions

View File

@@ -173,8 +173,8 @@
$wwpns = "";
if($luns[0]['lun'] == 0){$luns = "Some LUNs are owned by cluster";}else{$luns = $luns[0]['lun']." LUNs";}
if(is_array($Qvm)){$wwpns = str_replace("|",", ",$Qvm[0]['WWPNs']);}
echo "<center><span class='badge rounded-pill bg-primary text-light fs-5'>".$luns."</span>";
if($wwpns != ""){echo "&nbsp;<span class='badge rounded-pill bg-secondary text-light fs-5'>WWPNs :".$wwpns."</span></center><br>";}else{echo "</center><br>";}
echo "<div style=\"text-align: center;\"><span class='badge rounded-pill bg-primary text-light fs-5'>" .$luns."</span>";
if($wwpns != ""){echo "&nbsp;<span class='badge rounded-pill bg-secondary text-light fs-5'>WWPNs :".$wwpns."</span></div><br>";}else{echo "</div><br>";}
}
?>
<div class="row" id="drives">
@@ -287,8 +287,4 @@
</div>
<script src="/js/switch.js"></script>
</body>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>