From 4c0136eec8dab1dfa2fb9cd047a96e8b64368558 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 18 Feb 2019 15:20:42 +0100 Subject: [PATCH] Beautify displayed message for restricted hosts/services refs #147 --- application/views/scripts/host/show.phtml | 7 ++++--- application/views/scripts/service/show.phtml | 11 ++++------- public/css/module.less | 10 ++++++++++ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/application/views/scripts/host/show.phtml b/application/views/scripts/host/show.phtml index 1455c80..413baf2 100644 --- a/application/views/scripts/host/show.phtml +++ b/application/views/scripts/host/show.phtml @@ -6,7 +6,8 @@
showOnlyCloseButton() ?>
-
-

escape($this->translate('Access denied')) ?>

-

escape($this->translate('Access to host "%s" denied')), $host) ?>

+
+

translate('Access Denied') ?>

+

translate('You are lacking permission to access host "%s".'), $this->escape($host)) ?>

+ icon('cancel') ?>translate('Hide this message') ?>
diff --git a/application/views/scripts/service/show.phtml b/application/views/scripts/service/show.phtml index 5b0aee6..205b3f7 100644 --- a/application/views/scripts/service/show.phtml +++ b/application/views/scripts/service/show.phtml @@ -7,11 +7,8 @@
showOnlyCloseButton() ?>
-
-

escape($this->translate('Access denied')) ?>

-

escape($this->translate('Access to service "%s" of host "%s" denied')), - $service, - $host - ) ?>

+
+

escape($this->translate('Access Denied')) ?>

+

escape(sprintf($this->translate('You are lacking permission to access service "%s" on host "%s"'), $service, $host)) ?>

+ icon('cancel') ?>translate('Hide this message') ?>
diff --git a/public/css/module.less b/public/css/module.less index 68a58b3..5e18cbf 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -611,6 +611,16 @@ td > a > .badges { /** END of tiles **/ +.content.restricted { + h1 { + font-size: 2em; + } + + p > a { + margin-left: 1em; + } +} + /** BEGIN breadcrumb **/ .breadcrumb {