summaryrefslogtreecommitdiffstats
path: root/modules/monitoring/application/views/scripts/show/components/reachable.phtml
blob: 8d55e84c1d051b9729402670d3bd0507b497f204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?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 ?>