monitoring: Fix non-existent render of object-header

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-30 15:48:43 +02:00
parent ad3ff43b22
commit 2fb294bf9c
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ $history->limit($limit * $page);
if (! $this->compact): ?>
<div class="controls">
<?= $this->tabs; ?>
<?= $this->render('partials/host/object-header.phtml'); ?>
<?= $this->render('partials/object/host-header.phtml'); ?>
<h1><?= $this->translate('This Host\'s Event History'); ?></h1>
<?= $this->sortBox; ?>
<?= $this->limiter; ?>

View File

@ -5,14 +5,14 @@
<?= $this->tabs; ?>
<?php endif ?>
<?php if ($object->getType() === $object::TYPE_HOST): ?>
<?= $this->render('partials/host/object-header.phtml'); ?>
<?= $this->render('partials/object/host-header.phtml'); ?>
<?php
$this->baseFilter = Filter::where('host', $object->host_name);
$this->stats = $object->stats;
echo $this->render('list/components/servicesummary.phtml');
?>
<?php else: ?>
<?= $this->render('partials/service/object-header.phtml'); ?>
<?= $this->render('partials/object/service-header.phtml'); ?>
<hr class="command-separator">
<?php endif ?>
</div>

View File

@ -27,7 +27,7 @@ $history->limit($limit * $page);
if (! $this->compact): ?>
<div class="controls">
<?= $this->tabs; ?>
<?= $this->render('partials/service/object-header.phtml'); ?>
<?= $this->render('partials/object/service-header.phtml'); ?>
<h1><?= $this->translate('This Service\'s Event History'); ?></h1>
<?= $this->sortBox; ?>
<?= $this->limiter; ?>