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:
Matthias Jentsch 2014-06-30 12:13:04 +02:00
parent a2fa5c055c
commit 7fe056d03a
2 changed files with 60 additions and 52 deletions

View File

@ -1,3 +1,4 @@
<?php if ($object->host_name !== false): ?>
<div class="controls">
<?= $this->render('show/components/header.phtml') ?>
<h1><?= $this->translate("This host's current state") ?></h1>
@ -25,3 +26,6 @@
</tbody>
</table>
</div>
<?php else: ?>
<p> Host not found </p>
<?php endif ?>

View File

@ -1,3 +1,4 @@
<?php if ($object->host_name !== false): ?>
<div class="controls">
<?= $this->render('show/components/header.phtml') ?>
<h1><?= $this->translate("This service's current state") ?></h1>
@ -25,3 +26,6 @@
</tbody>
</table>
</div>
<?php else: ?>
<p> Service not found </p>
<?php endif ?>