Show reachability in the host and service detail view

refs #6875
This commit is contained in:
Eric Lippmann 2015-03-13 00:26:45 +01:00
parent 1c8c49e732
commit ce3c2507ef
1 changed files with 18 additions and 5 deletions

View File

@ -1,7 +1,20 @@
<?php if (! $object->check_source) return ?>
<?php if ($object->check_source !== null): ?>
<tr>
<th><?= $this->translate('Check Source') ?></th>
<td>
<?= $this->escape($object->check_source) ?>
</td>
<th>
<?= $this->translate('Check Source') ?>
</th>
<td>
<?= $this->escape($object->check_source) ?>
</td>
</tr>
<?php endif ?>
<?php if ($object->is_reachable !== null): ?>
<tr>
<th>
<?= $this->translate('Reachable') ?>
</th>
<td>
<?= $object->is_reachable ? $this->translate('Yes') : $this->translate('No') ?>
</td>
</tr>
<?php endif ?>