diff options
Diffstat (limited to 'app/Templates')
-rw-r--r-- | app/Templates/event_task_assignee_change.php | 6 | ||||
-rw-r--r-- | app/Templates/notification_task_assignee_change.php | 20 | ||||
-rw-r--r-- | app/Templates/notification_task_move_column.php | 11 | ||||
-rw-r--r-- | app/Templates/notification_task_move_position.php | 11 |
4 files changed, 48 insertions, 0 deletions
diff --git a/app/Templates/event_task_assignee_change.php b/app/Templates/event_task_assignee_change.php new file mode 100644 index 00000000..ac18af2f --- /dev/null +++ b/app/Templates/event_task_assignee_change.php @@ -0,0 +1,6 @@ +<p class="activity-title"> + <?= e('%s change the assignee of the task <a href="?controller=task&action=show&task_id=%d">#%d</a>', Helper\escape($author), $task_id, $task_id) ?> +</p> +<p class="activity-description"> + <em><?= Helper\escape($task_title) ?></em> +</p>
\ No newline at end of file diff --git a/app/Templates/notification_task_assignee_change.php b/app/Templates/notification_task_assignee_change.php new file mode 100644 index 00000000..9c2bee56 --- /dev/null +++ b/app/Templates/notification_task_assignee_change.php @@ -0,0 +1,20 @@ +<h2><?= Helper\escape($task['title']) ?> (#<?= $task['id'] ?>)</h2> + +<ul> + <li> + <strong> + <?php if ($task['assignee_username']): ?> + <?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?> + <?php else: ?> + <?= t('There is nobody assigned') ?> + <?php endif ?> + </strong> + </li> +</ul> + +<?php if (! empty($task['description'])): ?> + <h2><?= t('Description') ?></h2> + <?= Helper\parse($task['description']) ?: t('There is no description.') ?> +<?php endif ?> + +<?= Helper\template('notification_footer', array('task' => $task)) ?>
\ No newline at end of file diff --git a/app/Templates/notification_task_move_column.php b/app/Templates/notification_task_move_column.php new file mode 100644 index 00000000..026db776 --- /dev/null +++ b/app/Templates/notification_task_move_column.php @@ -0,0 +1,11 @@ +<h2><?= Helper\escape($task['title']) ?> (#<?= $task['id'] ?>)</h2> + +<ul> + <li> + <?= t('Column on the board:') ?> + <strong><?= Helper\escape($task['column_title']) ?></strong> + </li> + <li><?= t('Task position:').' '.Helper\escape($task['position']) ?></li> +</ul> + +<?= Helper\template('notification_footer', array('task' => $task)) ?>
\ No newline at end of file diff --git a/app/Templates/notification_task_move_position.php b/app/Templates/notification_task_move_position.php new file mode 100644 index 00000000..026db776 --- /dev/null +++ b/app/Templates/notification_task_move_position.php @@ -0,0 +1,11 @@ +<h2><?= Helper\escape($task['title']) ?> (#<?= $task['id'] ?>)</h2> + +<ul> + <li> + <?= t('Column on the board:') ?> + <strong><?= Helper\escape($task['column_title']) ?></strong> + </li> + <li><?= t('Task position:').' '.Helper\escape($task['position']) ?></li> +</ul> + +<?= Helper\template('notification_footer', array('task' => $task)) ?>
\ No newline at end of file |