From 1de845e6c3e4a3c71ff78322f42ef50ab91c952f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 9 Feb 2015 21:49:53 -0500 Subject: Display subtask icon status and title everywhere --- app/Core/Helper.php | 4 ++-- app/Template/app/subtasks.php | 4 ---- app/Template/subtask/show.php | 2 -- 3 files changed, 2 insertions(+), 8 deletions(-) (limited to 'app') diff --git a/app/Core/Helper.php b/app/Core/Helper.php index 9bbaea57..d60e29d4 100644 --- a/app/Core/Helper.php +++ b/app/Core/Helper.php @@ -634,7 +634,7 @@ class Helper if ($subtask['status'] == 0 && isset($this->session['has_subtask_inprogress']) && $this->session['has_subtask_inprogress'] === true) { return $this->a( - trim($this->render('subtask/icons', array('subtask' => $subtask))) . $this->e($subtask['status_name']), + trim($this->render('subtask/icons', array('subtask' => $subtask))) . $this->e($subtask['title']), 'subtask', 'subtaskRestriction', array('task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'redirect' => $redirect), @@ -644,7 +644,7 @@ class Helper } return $this->a( - trim($this->render('subtask/icons', array('subtask' => $subtask))) . $this->e($subtask['status_name']), + trim($this->render('subtask/icons', array('subtask' => $subtask))) . $this->e($subtask['title']), 'subtask', 'toggleStatus', array('task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'redirect' => $redirect) diff --git a/app/Template/app/subtasks.php b/app/Template/app/subtasks.php index 1ed57a22..fdfbdf2f 100644 --- a/app/Template/app/subtasks.php +++ b/app/Template/app/subtasks.php @@ -6,7 +6,6 @@ order('Id', 'tasks.id') ?> order(t('Project'), 'project_name') ?> - order(t('Status'), 'status') ?> order(t('Subtask'), 'title') ?> @@ -21,9 +20,6 @@ toggleSubtaskStatus($subtask, 'dashboard') ?> - - a($this->e($subtask['title']), 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?> - e($subtask['time_spent']).'h' ?> diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php index 6d4533d2..1d55d1ee 100644 --- a/app/Template/subtask/show.php +++ b/app/Template/subtask/show.php @@ -8,7 +8,6 @@ - @@ -17,7 +16,6 @@ -
e($subtask['title']) ?> toggleSubtaskStatus($subtask, 'task') ?> -- cgit v1.2.3