diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-07 19:39:39 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-07 19:39:39 -0500 |
commit | 2d890cbc712371f17ba4bbceb02af3c5ba04e6da (patch) | |
tree | f16630432aa7fa22ebc3784839ed77c55e96e6a8 /app/Template/task/timesheet.php | |
parent | fa6d19928abcfa03861e264222dbe46ad2fdc15a (diff) |
Update task time tracking based on subtask time tracking
Diffstat (limited to 'app/Template/task/timesheet.php')
-rw-r--r-- | app/Template/task/timesheet.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Template/task/timesheet.php b/app/Template/task/timesheet.php index fa76b84d..0210be7e 100644 --- a/app/Template/task/timesheet.php +++ b/app/Template/task/timesheet.php @@ -1,13 +1,13 @@ -<?php if ($timesheet['time_estimated'] > 0 || $timesheet['time_spent'] > 0): ?> +<?php if ($task['time_estimated'] > 0 || $task['time_spent'] > 0): ?> <div class="page-header"> <h2><?= t('Time tracking') ?></h2> </div> <ul class="listing"> - <li><?= t('Estimate:') ?> <strong><?= $this->e($timesheet['time_estimated']) ?></strong> <?= t('hours') ?></li> - <li><?= t('Spent:') ?> <strong><?= $this->e($timesheet['time_spent']) ?></strong> <?= t('hours') ?></li> - <li><?= t('Remaining:') ?> <strong><?= $this->e($timesheet['time_remaining']) ?></strong> <?= t('hours') ?></li> + <li><?= t('Estimate:') ?> <strong><?= $this->e($task['time_estimated']) ?></strong> <?= t('hours') ?></li> + <li><?= t('Spent:') ?> <strong><?= $this->e($task['time_spent']) ?></strong> <?= t('hours') ?></li> + <li><?= t('Remaining:') ?> <strong><?= $this->e($task['time_estimated'] - $task['time_spent']) ?></strong> <?= t('hours') ?></li> </ul> <?php endif ?>
\ No newline at end of file |