diff --git a/emhttp/plugins/dynamix.docker.manager/Docker.page b/emhttp/plugins/dynamix.docker.manager/Docker.page index 1d20e958a..687baea8e 100644 --- a/emhttp/plugins/dynamix.docker.manager/Docker.page +++ b/emhttp/plugins/dynamix.docker.manager/Docker.page @@ -18,9 +18,14 @@ Cond="exec(\"grep -o '^DOCKER_ENABLED=.yes' /boot/config/docker.cfg 2>/dev/null\ */ ?> -if ($var['fsState'] != 'Started') { - echo "
= $noticeMessage ?>
+ endif; ?> diff --git a/emhttp/plugins/dynamix.vm.manager/VMs.page b/emhttp/plugins/dynamix.vm.manager/VMs.page index e7c76fc61..51528d0d0 100644 --- a/emhttp/plugins/dynamix.vm.manager/VMs.page +++ b/emhttp/plugins/dynamix.vm.manager/VMs.page @@ -18,10 +18,19 @@ Cond="exec(\"grep -o '^SERVICE=.enable' /boot/config/domain.cfg 2>/dev/null\")" */ ?> -if ($var['fsState'] != "Started") { - echo "= $noticeMessage ?>
+ endif; ?> + + +if (count($pages) == 2) { + $tabbed = false; } -if (count($pages)==2) $tabbed = false; ?> \ No newline at end of file diff --git a/emhttp/plugins/dynamix/Shares.page b/emhttp/plugins/dynamix/Shares.page index a8f148b2d..80c67d706 100644 --- a/emhttp/plugins/dynamix/Shares.page +++ b/emhttp/plugins/dynamix/Shares.page @@ -2,10 +2,20 @@ Menu="Tasks:2" Type="xmenu" Code="e92a" --- -"._('Array must be **Started** to view Shares')."."; - return; -} -if (count($pages)==2) $tabbed = false; + + $noticeMessage = null; + if ($var['fsState'] == "Stopped") { + $noticeMessage = _('Array must be **Started** to view Shares'); + } +?> + + if ($noticeMessage): ?> += $noticeMessage ?>
+ return; ?> + endif; ?> + + +if (count($pages) == 2) { + $tabbed = false; +} ?>