summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/app/tasks.php10
1 files changed, 10 insertions, 0 deletions
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 @@
<th class="column-8"><?= $paginator->order('Id', 'tasks.id') ?></th>
<th class="column-20"><?= $paginator->order(t('Project'), 'project_name') ?></th>
<th><?= $paginator->order(t('Task'), 'title') ?></th>
+ <th class="column-20"><?= t('Time tracking') ?></th>
<th class="column-20"><?= $paginator->order(t('Due date'), 'date_due') ?></th>
</tr>
<?php foreach ($paginator->getCollection() as $task): ?>
@@ -21,6 +22,15 @@
<?= $this->a($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
</td>
<td>
+ <?php if (! empty($task['time_spent'])): ?>
+ <strong><?= $this->e($task['time_spent']).'h' ?></strong> <?= t('spent') ?>
+ <?php endif ?>
+
+ <?php if (! empty($task['time_estimated'])): ?>
+ <strong><?= $this->e($task['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
+ <?php endif ?>
+ </td>
+ <td>
<?= dt('%B %e, %Y', $task['date_due']) ?>
</td>
</tr>