summaryrefslogtreecommitdiff
path: root/app/Template/event/subtask_create.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/event/subtask_create.php')
-rw-r--r--app/Template/event/subtask_create.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Template/event/subtask_create.php b/app/Template/event/subtask_create.php
new file mode 100644
index 00000000..ca23aa9c
--- /dev/null
+++ b/app/Template/event/subtask_create.php
@@ -0,0 +1,24 @@
+<?= $this->user->avatar($email, $author) ?>
+
+<p class="activity-title">
+ <?= e('%s created a subtask for the task %s',
+ $this->e($author),
+ $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))
+ ) ?>
+</p>
+<div class="activity-description">
+ <p><em><?= $this->e($task['title']) ?></em></p>
+
+ <ul>
+ <li>
+ <?= $this->e($subtask['title']) ?> (<strong><?= $this->e($subtask['status_name']) ?></strong>)
+ </li>
+ <li>
+ <?php if ($subtask['username']): ?>
+ <?= t('Assigned to %s with an estimate of %s/%sh', $subtask['name'] ?: $subtask['username'], $subtask['time_spent'], $subtask['time_estimated']) ?>
+ <?php else: ?>
+ <?= t('Not assigned, estimate of %sh', $subtask['time_estimated']) ?>
+ <?php endif ?>
+ </li>
+ </ul>
+</div> \ No newline at end of file