From 0ae832d76de02f1894fc136d52605fe0d9fff59a Mon Sep 17 00:00:00 2001 From: BlueTeck Date: Sun, 29 Mar 2015 12:20:03 +0200 Subject: add task name to subtask dashboard #682 --- app/Model/Subtask.php | 1 + app/Template/app/subtasks.php | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'app') diff --git a/app/Model/Subtask.php b/app/Model/Subtask.php index e33373e0..492f3a77 100644 --- a/app/Model/Subtask.php +++ b/app/Model/Subtask.php @@ -98,6 +98,7 @@ class Subtask extends Base Subtask::TABLE.'.*', Task::TABLE.'.project_id', Task::TABLE.'.color_id', + Task::TABLE.'.title AS task_name', Project::TABLE.'.name AS project_name' ) ->eq('user_id', $user_id) diff --git a/app/Template/app/subtasks.php b/app/Template/app/subtasks.php index fdfbdf2f..487b66fc 100644 --- a/app/Template/app/subtasks.php +++ b/app/Template/app/subtasks.php @@ -6,6 +6,7 @@ order('Id', 'tasks.id') ?> order(t('Project'), 'project_name') ?> + order(t('Task'), 'task_name') ?> order(t('Subtask'), 'title') ?> @@ -17,6 +18,9 @@ a($this->e($subtask['project_name']), 'board', 'show', array('project_id' => $subtask['project_id'])) ?> + + a($this->e($subtask['task_name']), 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?> + toggleSubtaskStatus($subtask, 'dashboard') ?> -- cgit v1.2.3