diff options
| -rw-r--r-- | app/Template/app/subtasks.php | 10 | 
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>  | 
