summaryrefslogtreecommitdiff
path: root/app/Template/subtask/timer.php
blob: 2102e6cc6802f974fc415459d267e73b180077d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<span class="subtask-time-tracking">
    <?php if (! empty($subtask['time_spent'])): ?>
        <strong><?= $this->text->e($subtask['time_spent']).'h' ?></strong> <?= t('spent') ?>
    <?php endif ?>

    <?php if (! empty($subtask['time_estimated'])): ?>
        <strong><?= $this->text->e($subtask['time_estimated']).'h' ?></strong> <?= t('estimated') ?>
    <?php endif ?>

    <?php if ($this->user->hasProjectAccess('SubtaskController', 'edit', $task['project_id']) && $subtask['user_id'] == $this->user->getId()): ?>
        <?= $this->subtask->renderTimer($task, $subtask) ?>
    <?php endif ?>
</span>