icingaweb2-module-businessp.../application/views/scripts/ido-service/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

16 lines
633 B
PHTML

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