Beautify displayed message for restricted hosts/services

refs #147
This commit is contained in:
Johannes Meyer 2019-02-18 15:20:42 +01:00
parent 3985f67fe7
commit 4c0136eec8
3 changed files with 18 additions and 10 deletions

View file

@ -6,7 +6,8 @@
<div class="controls">
<?= $tabs->showOnlyCloseButton() ?>
</div>
<div class="content">
<h1><?= $this->escape($this->translate('Access denied')) ?></h1>
<p><?php printf($this->escape($this->translate('Access to host "%s" denied')), $host) ?></p>
<div class="content restricted">
<h1><?= $this->translate('Access Denied') ?></h1>
<p><?= sprintf($this->translate('You are lacking permission to access host "%s".'), $this->escape($host)) ?></p>
<a href="#" class="close-container-control action-link"><?= $this->icon('cancel') ?><?= $this->translate('Hide this message') ?></a>
</div>

View file

@ -7,11 +7,8 @@
<div class="controls">
<?= $tabs->showOnlyCloseButton() ?>
</div>
<div class="content">
<h1><?= $this->escape($this->translate('Access denied')) ?></h1>
<p><?php printf(
$this->escape($this->translate('Access to service "%s" of host "%s" denied')),
$service,
$host
) ?></p>
<div class="content restricted">
<h1><?= $this->escape($this->translate('Access Denied')) ?></h1>
<p><?= $this->escape(sprintf($this->translate('You are lacking permission to access service "%s" on host "%s"'), $service, $host)) ?></p>
<a href="#" class="close-container-control action-link"><?= $this->icon('cancel') ?><?= $this->translate('Hide this message') ?></a>
</div>

View file

@ -611,6 +611,16 @@ td > a > .badges {
/** END of tiles **/
.content.restricted {
h1 {
font-size: 2em;
}
p > a {
margin-left: 1em;
}
}
/** BEGIN breadcrumb **/
.breadcrumb {