Add proper titles to the hostgroups component view

refs #8458
This commit is contained in:
Johannes Meyer 2015-02-23 17:28:02 +01:00
parent 0d8bf462f5
commit 7247ea5191

View File

@ -4,9 +4,12 @@ if (empty($object->hostgroups)) return;
$list = array(); $list = array();
foreach ($object->hostgroups as $name => $alias) { foreach ($object->hostgroups as $name => $alias) {
$list[] = $this->qlink($alias, 'monitoring/list/hosts', array( $list[] = $this->qlink(
'hostgroup' => $name $alias,
)); 'monitoring/list/hosts',
array('hostgroup' => $name),
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $alias))
);
} }
printf( printf(
"<tr><th>%s</th><td>%s %s</td></tr>\n", "<tr><th>%s</th><td>%s %s</td></tr>\n",