diff options
| author | Frederic Guillot <fred@kanboard.net> | 2015-05-31 17:57:02 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2015-05-31 17:57:02 -0400 |
| commit | 599b6624dde8cb1c1f6416ee0af530402089da4d (patch) | |
| tree | 2cc995b09a4b2e67de276389fb28b0040d484296 /app/Controller/Base.php | |
| parent | 380aacd3f586089ae5c1e69841c0e0cb99478dcd (diff) | |
Improve project navigation
Diffstat (limited to 'app/Controller/Base.php')
| -rw-r--r-- | app/Controller/Base.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 57a64a3a..fcd07b99 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -247,12 +247,13 @@ abstract class Base extends \Core\Base * @param array $params Template parameters * @return string */ - protected function projectLayout($template, array $params) + protected function projectLayout($template, array $params, $sidebar_template = 'project/sidebar') { $content = $this->template->render($template, $params); $params['project_content_for_layout'] = $content; $params['title'] = $params['project']['name'] === $params['title'] ? $params['title'] : $params['project']['name'].' > '.$params['title']; $params['board_selector'] = $this->projectPermission->getAllowedProjects($this->userSession->getId()); + $params['sidebar_template'] = $sidebar_template; return $this->template->layout('project/layout', $params); } |
