mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Remove redudant titles
This commit is contained in:
parent
bc118516ec
commit
2f8bb8bb6c
2 changed files with 7 additions and 15 deletions
|
|
@ -29,9 +29,7 @@ class HostDetail extends ObjectDetail
|
|||
$services = new EmptyState(t('This host has no services'));
|
||||
}
|
||||
|
||||
$stats = [Html::tag('h2', t('Services'))];
|
||||
$stats[] = new HorizontalKeyValue(t('Services'), $services);
|
||||
return $stats;
|
||||
return [Html::tag('h2', t('Services')), $services];
|
||||
}
|
||||
|
||||
protected function assemble()
|
||||
|
|
|
|||
|
|
@ -211,12 +211,9 @@ class ObjectDetail extends BaseHtmlElement
|
|||
$hostgroupList->addLink($hostgroup->display_name, Links::hostgroup($hostgroup));
|
||||
}
|
||||
|
||||
$groups[] = new HorizontalKeyValue(
|
||||
t('Host Groups'),
|
||||
$hostgroupList->hasContent()
|
||||
? $hostgroupList
|
||||
: new EmptyState(t('Not a member of any host group.'))
|
||||
);
|
||||
$groups[] = $hostgroupList->hasContent()
|
||||
? $hostgroupList
|
||||
: new EmptyState(t('Not a member of any host group.'));
|
||||
} else {
|
||||
$servicegroups = [];
|
||||
if ($this->isPermittedRoute('servicegroups')) {
|
||||
|
|
@ -229,12 +226,9 @@ class ObjectDetail extends BaseHtmlElement
|
|||
$servicegroupList->addLink($servicegroup->display_name, Links::servicegroup($servicegroup));
|
||||
}
|
||||
|
||||
$groups[] = new HorizontalKeyValue(
|
||||
t('Service Groups'),
|
||||
$servicegroupList->hasContent()
|
||||
? $servicegroupList
|
||||
: new EmptyState(t('Not a member of any service group.'))
|
||||
);
|
||||
$groups[] = $servicegroupList->hasContent()
|
||||
? $servicegroupList
|
||||
: new EmptyState(t('Not a member of any service group.'));
|
||||
}
|
||||
|
||||
return $groups;
|
||||
|
|
|
|||
Loading…
Reference in a new issue