2017-12-19 17:57:04 +01:00

16 lines
612 B
PHTML

<?php if ($object->is_reachable !== null): ?>
<tr>
<th>
<?= $this->translate('Reachable') ?>
</th>
<td>
<span class="check-source-meta"><?= (bool) $object->is_reachable ? $this->translate('yes') : $this->translate('no') ?></span>
<?php if ((bool) $object->is_reachable) {
echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'icon-stateful state-ok'));
} else {
echo $this->icon('circle', $this->translate('Not reachable'), array('class' => 'icon-stateful state-critical'));
} ?>
</td>
</tr>
<?php endif ?>