Dashboard update: suppress non-existing disks in array statistics

This commit is contained in:
bergware
2017-06-09 17:37:41 +02:00
parent 7bdc5111dc
commit fe53f63523
+5
View File
@@ -112,6 +112,11 @@ function active_disks($disk) {
$disks = array_filter($disks,'active_disks');
$slots = count($disks) + count($devs);
?>
<?if ($slots<30):?>
<style>
table.share_status.fixed td:nth-child(<?=$slots+1?>)~td{display:none}
</style>
<?endif;?>
<table class='share_status fixed'>
<thead><tr>
<?