summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-07 22:00:56 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-07 22:00:56 -0500
commit4def2ab60cebe111bc76a755b27a68f5beed869b (patch)
tree596f60fdf96e4e25066f004417e1d51acfc9a742
parent563941c70d4ef8a66c01d6fa7529d4f905efaf3e (diff)
Add time tracking for subtasks on the dashboard
-rw-r--r--app/Template/app/subtasks.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/Template/app/subtasks.php b/app/Template/app/subtasks.php
index 0948e8f5..1ed57a22 100644
--- a/app/Template/app/subtasks.php
+++ b/app/Template/app/subtasks.php
@@ -8,6 +8,7 @@
<th class="column-20"><?= $paginator->order(t('Project'), 'project_name') ?></th>
<th class="column-15"><?= $paginator->order(t('Status'), 'status') ?></th>
<th><?= $paginator->order(t('Subtask'), 'title') ?></th>
+ <th class="column-20"><?= t('Time tracking') ?></th>
</tr>
<?php foreach ($paginator->getCollection() as $subtask): ?>
<tr>
@@ -23,6 +24,15 @@
<td>
<?= $this->a($this->e($subtask['title']), 'task', 'show', array('task_id' => $subtask['task_id'], 'project_id' => $subtask['project_id'])) ?>
</td>
+ <td>
+ <?php if (! empty($subtask['time_spent'])): ?>
+ <strong><?= $this->e($subtask['time_spent']).'h' ?></strong> <?= t('spent') ?>
+ <?php endif ?>
+
+ <?php if (! empty($subtask['time_estimated'])): ?>
+ <strong><?= $this->e($subtask['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
+ <?php endif ?>
+ </td>
</tr>
<?php endforeach ?>
</table>