From 37332ae2222706f8fb330dae780dc938512edcf5 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 2 Nov 2014 15:06:41 -0500 Subject: Change layout (experimental) --- app/Controller/Base.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/Controller/Base.php') diff --git a/app/Controller/Base.php b/app/Controller/Base.php index a8e22fd8..c0483aa1 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -245,6 +245,8 @@ abstract class Base $content = $this->template->load($template, $params); $params['task_content_for_layout'] = $content; + $params['title'] = $params['task']['project_name'].' > '.$params['task']['title']; + $params['board_selector'] = $this->projectPermission->getAllowedProjects($this->acl->getUserId()); return $this->template->layout('task_layout', $params); } @@ -261,7 +263,8 @@ abstract class Base { $content = $this->template->load($template, $params); $params['project_content_for_layout'] = $content; - $params['menu'] = 'projects'; + $params['title'] = $params['project']['name'] === $params['title'] ? $params['title'] : $params['project']['name'].' > '.$params['title']; + $params['board_selector'] = $this->projectPermission->getAllowedProjects($this->acl->getUserId()); return $this->template->layout('project_layout', $params); } -- cgit v1.2.3