diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-02 15:06:41 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-02 15:06:41 -0500 |
commit | 37332ae2222706f8fb330dae780dc938512edcf5 (patch) | |
tree | 9161d539cc289179339162d6922c4d9dd2c30e63 /app/Controller/Base.php | |
parent | 8fe5df39d97ef851d11931fcf7e906ec08838ef7 (diff) |
Change layout (experimental)
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r-- | app/Controller/Base.php | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |