config/file: unify look and feel, link back

fixes #13087
This commit is contained in:
Thomas Gelf 2016-11-08 22:16:56 +01:00
parent 7add16751b
commit 64f00940b1
2 changed files with 10 additions and 8 deletions

View File

@ -189,16 +189,19 @@ class ConfigController extends ActionController
'url' => $this->getRequest()->getUrl(),
))->activate('file');
if ($fileOnly) {
$tabs->remove('config');
if ($tabs->has('deployment')) {
$tabs->remove('deployment');
}
$params = $this->getConfigTabParams();
if ('deployment' === $this->params->get('backTo')) {
$this->view->addLink = $this->view->qlink(
$this->translate('back'),
'director/deployment',
array('id' => $params['deployment_id']),
array('class' => 'icon-left-big')
);
} else {
$this->view->addLink = $this->view->qlink(
$this->translate('back'),
'director/config/files',
$this->getConfigTabParams(),
$params,
array('class' => 'icon-left-big')
);
}

View File

@ -78,7 +78,7 @@ class StartupLogRenderer
'config_checksum' => $deploymentLog->getConfigHexChecksum(),
'deployment_id' => $deploymentLog->get('id'),
'file_path' => $filename,
'fileOnly' => true,
'backTo' => 'deployment'
);
if ($lineNumber !== null) {
$params['highlight'] = $lineNumber;
@ -90,7 +90,6 @@ class StartupLogRenderer
'director/config/file',
$params,
array(
'data-base-target' => '_next',
'title' => $stageDir . $filename
)
) . $suffix;