From b00cfdceb4bcaf836653b4cf841a20628f4af391 Mon Sep 17 00:00:00 2001 From: bergware Date: Sun, 10 Dec 2023 10:53:21 +0100 Subject: [PATCH] Main page: fix initial table creation --- emhttp/plugins/dynamix/ArrayDevices.page | 4 ++-- emhttp/plugins/dynamix/BootDevice.page | 2 +- emhttp/plugins/dynamix/CacheDevices.page | 4 ++-- emhttp/plugins/dynamix/OpenDevices.page | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/emhttp/plugins/dynamix/ArrayDevices.page b/emhttp/plugins/dynamix/ArrayDevices.page index 5c58b1123..9931a29d4 100644 --- a/emhttp/plugins/dynamix/ArrayDevices.page +++ b/emhttp/plugins/dynamix/ArrayDevices.page @@ -74,8 +74,8 @@ $('#tab1').bind({click:function() {$('i.toggle').show('slow');}}); _(Device)__(Identification)__(Temp)__(Reads)__(Writes)__(Errors)__(FS)__(Size)__(Used)__(Free)_  "; -if (_var($display,'total') && _var($var,'mdNumDisks',0)>1) echo " "; +foreach (main_filter($disks) as $disk) if (substr($disk['status'],0,7)!='DISK_NP') echo ""; +if (_var($display,'total') && _var($var,'mdNumDisks',0)>1) echo ""; ?> diff --git a/emhttp/plugins/dynamix/BootDevice.page b/emhttp/plugins/dynamix/BootDevice.page index db5b94b19..598fa2cfa 100644 --- a/emhttp/plugins/dynamix/BootDevice.page +++ b/emhttp/plugins/dynamix/BootDevice.page @@ -23,7 +23,7 @@ $('#tab3').bind({click:function() {$('i.toggle').show('slow');}}); -";?> +";?>
_(Device)__(Identification)__(Temp)__(Reads)__(Writes)__(Errors)__(FS)__(Size)__(Used)__(Free)_
 
diff --git a/emhttp/plugins/dynamix/CacheDevices.page b/emhttp/plugins/dynamix/CacheDevices.page index fa4378b82..099e0e6b8 100644 --- a/emhttp/plugins/dynamix/CacheDevices.page +++ b/emhttp/plugins/dynamix/CacheDevices.page @@ -146,8 +146,8 @@ $root = explode($_tilde_,$pool)[0]; - "?> -1) echo " "?> +"?> +1) echo ""?> diff --git a/emhttp/plugins/dynamix/OpenDevices.page b/emhttp/plugins/dynamix/OpenDevices.page index 5228ff13d..46ce02f41 100644 --- a/emhttp/plugins/dynamix/OpenDevices.page +++ b/emhttp/plugins/dynamix/OpenDevices.page @@ -30,7 +30,7 @@ $('').bind({click:function() {$('i.toggle').show('slow');}});  "; + echo ""; endforeach; ?>