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

22 lines
500 B
PHTML

<?php
if (empty($object->servicegroups)) return;
$list = array();
foreach ($object->servicegroups as $name => $alias) {
$list[] = $this->qlink(
$alias,
'monitoring/list/services',
array('servicegroup' => $name),
array('title' => sprintf($this->translate('List all services in the group "%s"'), $alias))
);
}
printf(
"<tr><th>%s</th><td>%s %s</td></tr>\n",
$this->translate('Servicegroups'),
$this->icon('services'),
implode(', ', $list)
);