ServiceController: provide a link back for...

...services on hosts
This commit is contained in:
Thomas Gelf 2017-01-13 16:10:55 +01:00
parent f874a79bb4
commit b226ed1341
1 changed files with 9 additions and 6 deletions

View File

@ -114,6 +114,15 @@ class ServiceController extends ObjectController
{
$object = $this->object;
if ($this->host) {
$this->view->actionLinks = $this->view->qlink(
$this->translate('back'),
'director/host/services',
array('name' => $this->host->object_name),
array('class' => 'icon-left-big')
);
}
if ($this->host && $object->usesVarOverrides()) {
$parent = IcingaService::create(array(
@ -125,12 +134,6 @@ class ServiceController extends ObjectController
$object->vars = $this->host->getOverriddenServiceVars($object->object_name);
$object->imports()->add($parent);
$this->view->actionLinks = $this->view->qlink(
$this->translate('back'),
'director/host/services',
array('name' => $this->host->object_name),
array('class' => 'icon-left-big')
);
}
$this->getTabs()->activate('modify');