2013-08-22 17:17:58 +02:00
|
|
|
<?php $showService = $object->service_description && $tabs->getActiveName() !== 'host' ?>
|
|
|
|
<?php if (! $compact): ?>
|
2013-08-07 17:51:52 +02:00
|
|
|
<?= $tabs->render($this) ?>
|
2013-08-22 17:17:58 +02:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{HOST_ICON}} <b><?= $this->escape($object->host_name) ?>
|
|
|
|
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
|
|
|
(<?= $this->escape($object->host_address) ?>)
|
|
|
|
<?php endif ?>
|
|
|
|
</b>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?= $this->util()->getHostStateName($object->host_state) ?>
|
|
|
|
<br/>
|
2013-07-12 14:33:17 +02:00
|
|
|
since <?= $this->timeSince($object->host_last_state_change) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-08-22 17:17:58 +02:00
|
|
|
<?php if ($showService): ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{SERVICE_ICON}} <b>Service: <?= $this->escape($object->service_description) ?></b>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?= $this->util()->getServiceStateName($object->service_state); ?>
|
|
|
|
<br/>
|
2013-07-12 14:33:17 +02:00
|
|
|
since <?= $this->timeSince($object->service_last_state_change) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-08-22 17:17:58 +02:00
|
|
|
<?php endif; ?>
|
2013-07-12 14:33:17 +02:00
|
|
|
</table>
|