From eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:02:25 -0400 Subject: Helpers refactoring --- app/Template/board/task_private.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/Template/board/task_private.php') diff --git a/app/Template/board/task_private.php b/app/Template/board/task_private.php index d82b96e8..088f47bc 100644 --- a/app/Template/board/task_private.php +++ b/app/Template/board/task_private.php @@ -3,12 +3,12 @@ data-owner-id="" data-category-id="" data-due-date="" - data-task-url="u('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"> + data-task-url="url->href('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>"> render('board/task_menu', array('task' => $task)) ?>
@@ -19,8 +19,8 @@ - - a( + + url->link( (! empty($task['owner_id']) ? ($task['assignee_name'] ?: $task['assignee_username']) : t('Nobody assigned')), 'board', 'changeAssignee', @@ -32,12 +32,12 @@
- getTaskAge($task['date_creation']) ?> - getTaskAge($task['date_moved']) ?> + task->age($task['date_creation']) ?> + task->age($task['date_moved']) ?>
- a($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?>
render('board/task_footer', array( -- cgit v1.2.3