diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-25 17:41:41 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-25 17:41:41 -0400 |
commit | 354e37971d43d3b62d8f4e2a23eff09e88525627 (patch) | |
tree | ab7ded1870bbdec219909cf5f5c9d50549d2c9a1 /app/Controller/Listing.php | |
parent | 13d5bd8e48bd6c0109d1272da58a8879bf9a6737 (diff) |
Unification of project header
Diffstat (limited to 'app/Controller/Listing.php')
-rw-r--r-- | app/Controller/Listing.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/Controller/Listing.php b/app/Controller/Listing.php index c784dd50..9931c346 100644 --- a/app/Controller/Listing.php +++ b/app/Controller/Listing.php @@ -19,22 +19,23 @@ class Listing extends Base */ public function show() { - $params = $this->getProjectFilters('listing', 'show'); - $query = $this->taskFilter->search($params['filters']['search'])->filterByProject($params['project']['id'])->getQuery(); + $project = $this->getProject(); + $search = $this->helper->projectHeader->getSearchQuery($project); + $query = $this->taskFilter->search($search)->filterByProject($project['id'])->getQuery(); $paginator = $this->paginator - ->setUrl('listing', 'show', array('project_id' => $params['project']['id'])) + ->setUrl('listing', 'show', array('project_id' => $project['id'])) ->setMax(30) ->setOrder(TaskModel::TABLE.'.id') ->setDirection('DESC') ->setQuery($query) ->calculate(); - $this->response->html($this->helper->layout->app('listing/show', $params + array( + $this->response->html($this->helper->layout->app('listing/show', array( + 'project' => $project, + 'title' => $project['name'], + 'description' => $this->helper->projectHeader->getDescription($project), 'paginator' => $paginator, - 'categories_list' => $this->category->getList($params['project']['id'], false), - 'users_list' => $this->projectUserRole->getAssignableUsersList($params['project']['id'], false), - 'custom_filters_list' => $this->customFilter->getAll($params['project']['id'], $this->userSession->getId()), ))); } } |