From 563941c70d4ef8a66c01d6fa7529d4f905efaf3e Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 7 Feb 2015 21:56:04 -0500 Subject: Add task time tracking on the dashboard --- app/Model/TaskFinder.php | 2 ++ app/Template/app/tasks.php | 10 ++++++++++ 2 files changed, 12 insertions(+) (limited to 'app') diff --git a/app/Model/TaskFinder.php b/app/Model/TaskFinder.php index 42f2f273..4ed196ef 100644 --- a/app/Model/TaskFinder.php +++ b/app/Model/TaskFinder.php @@ -59,6 +59,8 @@ class TaskFinder extends Base 'tasks.date_creation', 'tasks.project_id', 'tasks.color_id', + 'tasks.time_spent', + 'tasks.time_estimated', 'projects.name AS project_name' ) ->join(Project::TABLE, 'id', 'project_id') diff --git a/app/Template/app/tasks.php b/app/Template/app/tasks.php index 37843af5..9987ff48 100644 --- a/app/Template/app/tasks.php +++ b/app/Template/app/tasks.php @@ -7,6 +7,7 @@ order('Id', 'tasks.id') ?> order(t('Project'), 'project_name') ?> order(t('Task'), 'title') ?> + order(t('Due date'), 'date_due') ?> getCollection() as $task): ?> @@ -20,6 +21,15 @@ a($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + + + e($task['time_spent']).'h' ?> + + + + e($task['time_estimated']).'h' ?> + + -- cgit v1.2.3