From 71cb484299a866c5d6e5ec17991d9b89b6add809 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 12 Aug 2015 16:47:31 +0200 Subject: [PATCH] Show the full layout for anonymous clients fixes #9892 --- application/layouts/scripts/body.phtml | 93 +++++++++++++------------- 1 file changed, 47 insertions(+), 46 deletions(-) diff --git a/application/layouts/scripts/body.phtml b/application/layouts/scripts/body.phtml index 92caaf2f3..18fc18872 100644 --- a/application/layouts/scripts/body.phtml +++ b/application/layouts/scripts/body.phtml @@ -4,59 +4,60 @@ use Icinga\Web\Url; use Icinga\Web\Notification; use Icinga\Authentication\Auth; +$moduleName = $this->layout()->moduleName; +if ($moduleName) { + $moduleClass = ' icinga-module module-' . $moduleName; +} else { + $moduleClass = ''; +} -if (Auth::getInstance()->isAuthenticated()): - $moduleName = $this->layout()->moduleName; - if ($moduleName) { - $moduleClass = ' icinga-module module-' . $moduleName; - } else { - $moduleClass = ''; - } +$refresh = ''; +if ($this->layout()->autorefreshInterval) { + $refresh = ' data-icinga-refresh="' . $this->layout()->autorefreshInterval . '"'; +} - $refresh = ''; - if ($this->layout()->autorefreshInterval) { - $refresh = ' data-icinga-refresh="' . $this->layout()->autorefreshInterval . '"'; - } ?> - - -layout()->isIframe): ?> - + +layout()->isIframe): ?> + -
-
data-icinga-module="" data-icinga-url="without('renderLayout') ?>" style="display: block"> - render('inline.phtml') ?> +
+
data-icinga-module="" data-icinga-url="without('renderLayout'); ?>" style="display: block"> + render('inline.phtml') ?>
-
- + - -render('inline.phtml') ?> - + ?> +
\ No newline at end of file