summaryrefslogtreecommitdiff
path: root/app/Template/task/details.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/task/details.php')
-rw-r--r--app/Template/task/details.php21
1 files changed, 10 insertions, 11 deletions
diff --git a/app/Template/task/details.php b/app/Template/task/details.php
index cf305743..2712d49b 100644
--- a/app/Template/task/details.php
+++ b/app/Template/task/details.php
@@ -85,6 +85,9 @@
<?= t('not assigned') ?>
<?php endif ?>
</span>
+ <?php if ($editable && $task['owner_id'] != $this->user->getId()): ?>
+ - <span><?= $this->url->link(t('Assign to me'), 'TaskModificationController', 'assignToMe', ['task_id' => $task['id'], 'project_id' => $task['project_id']]) ?></span>
+ <?php endif ?>
</li>
<?php if ($task['creator_username']): ?>
<li>
@@ -116,12 +119,14 @@
<span><?= $this->dt->datetime($task['date_due']) ?></span>
</li>
<?php endif ?>
- <?php if ($task['date_started']): ?>
- <li>
- <strong><?= t('Started:') ?></strong>
+ <li>
+ <strong><?= t('Started:') ?></strong>
+ <?php if ($task['date_started']): ?>
<span><?= $this->dt->datetime($task['date_started']) ?></span>
- </li>
- <?php endif ?>
+ <?php elseif ($editable): ?>
+ <span><?= $this->url->link(t('Start now'), 'TaskModificationController', 'start', ['task_id' => $task['id'], 'project_id' => $task['project_id']]) ?></span>
+ <?php endif ?>
+ </li>
<li>
<strong><?= t('Created:') ?></strong>
<span><?= $this->dt->datetime($task['date_creation']) ?></span>
@@ -164,11 +169,5 @@
)) ?>
<?php endif ?>
- <?php if ($editable && empty($task['date_started'])): ?>
- <div class="buttons-header">
- <?= $this->url->button('play', t('Set start date'), 'TaskModificationController', 'start', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
- </div>
- <?php endif ?>
-
<?= $this->hook->render('template:task:details:bottom', array('task' => $task)) ?>
</section>