mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
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;
|
$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()) {
|
if ($this->host && $object->usesVarOverrides()) {
|
||||||
|
|
||||||
$parent = IcingaService::create(array(
|
$parent = IcingaService::create(array(
|
||||||
@ -125,12 +134,6 @@ class ServiceController extends ObjectController
|
|||||||
|
|
||||||
$object->vars = $this->host->getOverriddenServiceVars($object->object_name);
|
$object->vars = $this->host->getOverriddenServiceVars($object->object_name);
|
||||||
$object->imports()->add($parent);
|
$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');
|
$this->getTabs()->activate('modify');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user