mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-22 01:17:42 +02:00
Display note when host and service is not found
When the show/host and show/service views do not find a host or service, don't show a non-working view, but display a error message fixes #6469
This commit is contained in:
parent
a2fa5c055c
commit
7fe056d03a
@ -1,3 +1,4 @@
|
|||||||
|
<?php if ($object->host_name !== false): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->render('show/components/header.phtml') ?>
|
<?= $this->render('show/components/header.phtml') ?>
|
||||||
<h1><?= $this->translate("This host's current state") ?></h1>
|
<h1><?= $this->translate("This host's current state") ?></h1>
|
||||||
@ -25,3 +26,6 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<p> Host not found </p>
|
||||||
|
<?php endif ?>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
<?php if ($object->host_name !== false): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->render('show/components/header.phtml') ?>
|
<?= $this->render('show/components/header.phtml') ?>
|
||||||
<h1><?= $this->translate("This service's current state") ?></h1>
|
<h1><?= $this->translate("This service's current state") ?></h1>
|
||||||
@ -25,3 +26,6 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<p> Service not found </p>
|
||||||
|
<?php endif ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user