ServiceController: provide a link back for...
...services on hosts
This commit is contained in:
parent
f874a79bb4
commit
b226ed1341
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue