summaryrefslogtreecommitdiff
path: root/app/Template/event/task_assignee_change.php
blob: cdec8743a7dc79a33e42a2da234a4394809147ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>