parent
8aa1dcd4f9
commit
daa9d8a9ef
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
use Icinga\Module\Monitoring\Object\Host;
|
||||
use Icinga\Module\Monitoring\Object\Service;
|
||||
/** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -9,15 +10,15 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||
<?= $this->timeSince($object->host_last_state_change) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->iconImage()->service($object) ?>
|
||||
<?= $this->escape($object->host_display_name) ?>
|
||||
<?php if ($object->host_display_name !== $object->host_name): ?>
|
||||
<?= $this->iconImage()->service($object) ?>
|
||||
<?= $this->escape($object->host_display_name) ?>
|
||||
<?php if ($object->host_display_name !== $object->host_name): ?>
|
||||
(<?= $this->escape($object->host_name) ?>)
|
||||
<?php endif ?>
|
||||
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
||||
<?php endif ?>
|
||||
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
||||
<br>
|
||||
<?= $this->escape($object->host_address) ?>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
<?= $this->render('partials/host/statusicons.phtml') ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -29,9 +30,9 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||
<td>
|
||||
<?= $this->iconImage()->host($object) ?>
|
||||
<?= $this->translate('Service') ?>: <?= $this->escape($object->service_display_name) ?>
|
||||
<?php if ($object->service_display_name !== $object->service_description): ?>
|
||||
(<?= $this->escape($object->service_description) ?>)
|
||||
<?php endif ?>
|
||||
<?php if ($object->service_display_name !== $object->service_description): ?>
|
||||
(<?= $this->escape($object->service_description) ?>)
|
||||
<?php endif ?>
|
||||
<?= $this->render('partials/service/statusicons.phtml') ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue