mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-10-28 18:04:07 +01:00
Add property component and helper which output all information about an object (host or service). refs #4182
19 lines
368 B
PHTML
19 lines
368 B
PHTML
<?php
|
|
$object = null;
|
|
|
|
if (isset($this->service)) {
|
|
$object = $this->service;
|
|
} elseif (isset($this->host)) {
|
|
$object = $this->host;
|
|
}
|
|
|
|
$properties = $this->monitoringProperties($object);
|
|
?>
|
|
<table>
|
|
<?php foreach ($properties as $label => $value) { ?>
|
|
<tr>
|
|
<th><?= $label ?></th>
|
|
<td><?= $value ?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|