Skip to content

Commit

Permalink
monitoring/detail: Show reachable next to check source
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 30, 2015
1 parent 762e00c commit 95f55a2
Showing 1 changed file with 13 additions and 15 deletions.
Expand Up @@ -4,21 +4,19 @@
<?= $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>
<?php if ((bool) $object->is_reachable) {
echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok'));
} else {
echo $this->icon('circle', $this->translate('Not reachable'), array('class' => 'fg-color-critical'));
} ?>
<p>
<?php if ($object->is_reachable !== null) {
if ((bool) $object->is_reachable) {
echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok'));
} else {
echo $this->icon('circle', $this->translate('Not reachable'), array('class' => 'fg-color-critical'));
}
} ?>
<?= $this->escape($object->check_source) ?>
<?php if ($object->is_reachable !== null): ?>
<span class="text-small"><?= (bool) $object->is_reachable ? $this->translate('is reachable') : $this->translate('is not reachable') ?></span>
<?php endif ?>
</p>
</td>
</tr>
<?php endif ?>

0 comments on commit 95f55a2

Please sign in to comment.