icingaweb2/modules/monitoring/application/views/scripts/show/components/flags.phtml

25 lines
567 B
PHTML
Raw Normal View History

2013-07-22 16:03:36 +02:00
<?php
$object = null;
if (isset($this->service)) {
$object = $this->service;
} elseif (isset($this->host)) {
$object = $this->host;
}
$flags = $this->monitoringFlags($object);
?>
<table class="table table-condensed">
<?php foreach ($flags as $name => $value): ?>
<tr>
<th><?= $name; ?></th>
<td>
<?php if ($value === true): ?>
<span>{{ENABLED_ICON}} ENABLED</span>
<?php else: ?>
<span>{{DISABLED_ICON}} DISABLED</span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
2013-07-22 16:03:36 +02:00
</table>