2013-09-24 09:26:10 -04:00
|
|
|
<?php
|
2014-03-06 13:57:21 -05:00
|
|
|
|
|
|
|
|
if (empty($object->hostgroups)) return;
|
|
|
|
|
|
|
|
|
|
$list = array();
|
2013-09-24 09:26:10 -04:00
|
|
|
foreach ($object->hostgroups as $name => $alias) {
|
2014-12-17 07:00:15 -05:00
|
|
|
$list[] = $this->qlink($alias, 'monitoring/list/hosts', array(
|
2014-03-06 13:57:21 -05:00
|
|
|
'hostgroup' => $name
|
|
|
|
|
));
|
2013-09-24 09:26:10 -04:00
|
|
|
}
|
2014-03-06 13:57:21 -05:00
|
|
|
printf(
|
|
|
|
|
"<tr><th>%s</th><td>%s %s</td></tr>\n",
|
|
|
|
|
$this->translate('Hostgroups'),
|
2015-02-16 04:52:42 -05:00
|
|
|
$this->icon('host'),
|
2014-03-06 13:57:21 -05:00
|
|
|
implode(', ', $list)
|
|
|
|
|
);
|
2013-10-15 06:48:33 -04:00
|
|
|
|