ConfigController: show tabs, also related...

...deployment if linked from there
This commit is contained in:
Thomas Gelf 2015-10-16 18:03:32 +02:00
parent 8a265777e6
commit 21c42b9922
1 changed files with 17 additions and 0 deletions

View File

@ -31,6 +31,23 @@ class Director_ConfigController extends ActionController
public function showAction()
{
$tabs = $this->getTabs();
if ($deploymentId = $this->params->get('deployment_id')) {
$tabs->add('deployment', array(
'label' => $this->translate('Deployment'),
'url' => 'director/deployment/show',
'urlParams' => array(
'id' => $deploymentId
)
));
}
$tabs->add('config', array(
'label' => $this->translate('Config'),
'url' => $this->getRequest()->getUrl(),
))->activate('config');
$this->view->config = IcingaConfig::fromDb(Util::hex2binary($this->params->get('checksum')), $this->db());
}