diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-03-11 18:08:25 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-03-11 18:08:25 -0500 |
commit | bb9e7916574bd7e21550bf7505757fccae6cbdd0 (patch) | |
tree | e3a063c049e39bd0afd184cc96b45a35da322fcf /app/Template/task_list/header.php | |
parent | 748f1c09fbe3e160266e1fb6edb99b29725b6d3a (diff) |
Use same layout as task listing for task search
Diffstat (limited to 'app/Template/task_list/header.php')
-rw-r--r-- | app/Template/task_list/header.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/Template/task_list/header.php b/app/Template/task_list/header.php index 6501a919..7704e2df 100644 --- a/app/Template/task_list/header.php +++ b/app/Template/task_list/header.php @@ -7,10 +7,12 @@ <?php endif ?> </div> <div class="table-list-header-menu"> - <?php if ($this->user->hasSubtaskListActivated()): ?> - <?= $this->url->icon('tasks', t('Hide subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'hide_subtasks' => 1)) ?> - <?php else: ?> - <?= $this->url->icon('tasks', t('Show subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'show_subtasks' => 1)) ?> + <?php if (isset($project)): ?> + <?php if ($this->user->hasSubtaskListActivated()): ?> + <?= $this->url->icon('tasks', t('Hide subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'hide_subtasks' => 1)) ?> + <?php else: ?> + <?= $this->url->icon('tasks', t('Show subtasks'), 'TaskListController', 'show', array('project_id' => $project['id'], 'show_subtasks' => 1)) ?> + <?php endif ?> <?php endif ?> <?= $this->render('task_list/sort_menu', array('paginator' => $paginator)) ?> |