mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-12-07 13:10:14 +01:00
- Icons have now the {{XY_ICON}} format
- custom classes are removed
- A few typos are fixed
- Capitalization
refs #4550
refs #4621
refs #4584
25 lines
567 B
PHTML
25 lines
567 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="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; ?>
|
|
</table>
|