mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-10-28 09:54:32 +01:00
25 lines
616 B
PHTML
25 lines
616 B
PHTML
<?php
|
|
$object = null;
|
|
|
|
if (isset($this->service)) {
|
|
$object = $this->service;
|
|
} elseif (isset($this->host)) {
|
|
$object = $this->host;
|
|
}
|
|
|
|
$flags = $this->monitoringFlags($object);
|
|
?>
|
|
<table class="flag-container">
|
|
<?php foreach ($flags as $name => $value) { ?>
|
|
<tr>
|
|
<th><?= $name; ?></th>
|
|
<td>
|
|
<?php if ($value === true) { ?>
|
|
<span class="flag flag-enabled">ENABLED</span>
|
|
<?php } else { ?>
|
|
<span class="flag flag-disabled">DISABLED</span>
|
|
<?php } ?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|