diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-10 22:10:32 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-10 22:10:32 -0500 |
commit | efbf679385773e76cbb436691f63e931c17172d4 (patch) | |
tree | e2d15b3a0afa15e2a5532ad8f2d2c110665ffb98 /app/Template/task/sidebar.php | |
parent | 57613d18539a2cf5970dcc0c4f50e023df9eea73 (diff) |
Add subtask time tracking in the task view
Diffstat (limited to 'app/Template/task/sidebar.php')
-rw-r--r-- | app/Template/task/sidebar.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php index acddd52f..e85a1671 100644 --- a/app/Template/task/sidebar.php +++ b/app/Template/task/sidebar.php @@ -4,6 +4,11 @@ <li> <?= $this->a(t('Summary'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> </li> + <?php if ($task['time_estimated'] > 0 || $task['time_spent'] > 0): ?> + <li> + <?= $this->a(t('Time tracking'), 'task', 'timesheet', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + </li> + <?php endif ?> <li> <?= $this->a(t('Edit the task'), 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> </li> |