diff options
Diffstat (limited to 'app/Template/event/task_assignee_change.php')
-rw-r--r-- | app/Template/event/task_assignee_change.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/Template/event/task_assignee_change.php b/app/Template/event/task_assignee_change.php new file mode 100644 index 00000000..cdec8743 --- /dev/null +++ b/app/Template/event/task_assignee_change.php @@ -0,0 +1,18 @@ +<?= $this->user->avatar($email, $author) ?> + +<p class="activity-title"> + <?php $assignee = $task['assignee_name'] ?: $task['assignee_username'] ?> + + <?php if (! empty($assignee)): ?> + <?= e('%s changed the assignee of the task %s to %s', + $this->e($author), + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $this->e($assignee) + ) ?> + <?php else: ?> + <?= e('%s remove the assignee of 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']))) ?> + <?php endif ?> +</p> +<p class="activity-description"> + <em><?= $this->e($task['title']) ?></em> +</p>
\ No newline at end of file |