From bb9e7916574bd7e21550bf7505757fccae6cbdd0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 11 Mar 2017 18:08:25 -0500 Subject: Use same layout as task listing for task search --- app/Template/search/results.php | 83 ++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 55 deletions(-) (limited to 'app/Template/search/results.php') diff --git a/app/Template/search/results.php b/app/Template/search/results.php index f4d6d1db..f5a4cfc8 100644 --- a/app/Template/search/results.php +++ b/app/Template/search/results.php @@ -1,58 +1,31 @@ - - - - - - - - - - - - +
+ render('task_list/header', array( + 'paginator' => $paginator, + )) ?> + getCollection() as $task): ?> -
- - - - - - - - - - +
+ render('task_list/task_title', array( + 'task' => $task, + )) ?> + + render('task_list/task_details', array( + 'task' => $task, + )) ?> + + render('task_list/task_avatars', array( + 'task' => $task, + )) ?> + + render('task_list/task_icons', array( + 'task' => $task, + )) ?> + + render('task_list/task_subtasks', array( + 'task' => $task, + )) ?> +
-
order(t('Id'), 'tasks.id') ?>order(t('Project'), 'tasks.project_id') ?>order(t('Swimlane'), 'tasks.swimlane_id') ?>order(t('Column'), 'tasks.column_id') ?>order(t('Category'), 'tasks.category_id') ?>order(t('Title'), 'tasks.title') ?>order(t('Assignee'), 'users.username') ?>order(t('Due date'), 'tasks.date_due') ?>order(t('Status'), 'tasks.is_active') ?>
- user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?> - render('task/dropdown', array('task' => $task)) ?> - - # - - - url->link($this->text->e($task['project_name']), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?> - - text->e($task['swimlane_name']) ?> - - text->e($task['column_name']) ?> - - text->e($task['category_name']) ?> - - url->link($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> - - - text->e($task['assignee_name'] ?: $task['assignee_username']) ?> - - - - - dt->date($task['date_due']) ?> - - - - - - -
+ - + \ No newline at end of file -- cgit v1.2.3