icingaweb2-module-businessp.../application/views/scripts/ido-host/show.phtml
Sukhwinder Dhillon d17c4501b2 Use same view script in monitoring and icingadb for Access Denied message
- Host|ServiceController: The extended class `CompatController` has its own tabs. Therefore, set the view script tabs to null
  to avoid creating tabs twice.
- View-scripts: Add a condition to create tabs only when the `monitoring` backend (ido[Host|Service]Controller) is used.
2026-01-13 08:52:01 +01:00

15 lines
565 B
PHTML

<?php
/** @var \Icinga\Web\View $this */
/** @var \Icinga\Web\Widget\Tabs $tabs */
/** @var string $host */
?>
<?php if ($tabs): ?>
<div class="controls">
<?= $tabs->showOnlyCloseButton() ?>
</div>
<?php endif ?>
<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>