-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let the error page look like the login page when a non-authenticated …
…user requests a non-existent page refs #10009
- Loading branch information
Showing
2 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
<div class="controls"> | ||
<?= $this->tabs->showOnlyCloseButton() ?> | ||
</div> | ||
<div class="content"> | ||
<p><strong><?= nl2br($this->escape($message)) ?></strong></p> | ||
<?php if (isset($stackTrace)) : ?> | ||
<hr /> | ||
<pre><?= $this->escape($stackTrace) ?></pre> | ||
<?php endif ?> | ||
</div> | ||
<?php if ($noAuthPageNotFound) { ?> | ||
<div id="login"> | ||
<div class="logo"> | ||
<div class="image"> | ||
<img aria-hidden="true" class="fade-in one" src="<?= $this->baseUrl('img/logo_icinga_big.png'); ?>" alt="<?= $this->translate('The Icinga logo'); ?>" > | ||
</div> | ||
</div> | ||
<div class="form" data-base-target="layout"> | ||
<div class="content"> | ||
<p><strong><?= nl2br($this->escape($message)) ?></strong></p> | ||
</div> | ||
</div> | ||
</div> | ||
<?php } else { ?> | ||
<div class="controls"> | ||
<?= $this->tabs->showOnlyCloseButton() ?> | ||
</div> | ||
<div class="content"> | ||
<p><strong><?= nl2br($this->escape($message)) ?></strong></p> | ||
<?php if (isset($stackTrace)) : ?> | ||
<hr /> | ||
<pre><?= $this->escape($stackTrace) ?></pre> | ||
<?php endif ?> | ||
</div> | ||
<?php } ?> |