diff options
Diffstat (limited to 'app/Template/event')
-rw-r--r-- | app/Template/event/comment_create.php | 7 | ||||
-rw-r--r-- | app/Template/event/comment_update.php | 6 | ||||
-rw-r--r-- | app/Template/event/subtask_create.php | 19 | ||||
-rw-r--r-- | app/Template/event/subtask_update.php | 19 | ||||
-rw-r--r-- | app/Template/event/task_assignee_change.php | 12 | ||||
-rw-r--r-- | app/Template/event/task_close.php | 6 | ||||
-rw-r--r-- | app/Template/event/task_create.php | 6 | ||||
-rw-r--r-- | app/Template/event/task_move_column.php | 6 | ||||
-rw-r--r-- | app/Template/event/task_move_position.php | 6 | ||||
-rw-r--r-- | app/Template/event/task_open.php | 6 | ||||
-rw-r--r-- | app/Template/event/task_update.php | 6 |
11 files changed, 99 insertions, 0 deletions
diff --git a/app/Template/event/comment_create.php b/app/Template/event/comment_create.php new file mode 100644 index 00000000..d2f6f97b --- /dev/null +++ b/app/Template/event/comment_create.php @@ -0,0 +1,7 @@ +<p class="activity-title"> + <?= e('%s commented the task <a href="?controller=task&action=show&task_id=%d">#%d</a>', Helper\escape($author), $task_id, $task_id) ?> +</p> +<div class="activity-description"> + <em><?= Helper\escape($task['title']) ?></em><br/> + <div class="markdown"><?= Helper\markdown($comment['comment']) ?></div> +</div>
\ No newline at end of file diff --git a/app/Template/event/comment_update.php b/app/Template/event/comment_update.php new file mode 100644 index 00000000..c0b43622 --- /dev/null +++ b/app/Template/event/comment_update.php @@ -0,0 +1,6 @@ +<p class="activity-title"> + <?= e('%s updated a comment on the task <a href="?controller=task&action=show&task_id=%d">#%d</a>', Helper\escape($author), $task_id, $task_id) ?> +</p> +<div class="activity-description"> + <em><?= Helper\escape($task['title']) ?></em><br/> +</div>
\ No newline at end of file diff --git a/app/Template/event/subtask_create.php b/app/Template/event/subtask_create.php new file mode 100644 index 00000000..664e9da2 --- /dev/null +++ b/app/Template/event/subtask_create.php @@ -0,0 +1,19 @@ +<p class="activity-title"> + <?= e('%s created a subtask for the task <a href="?controller=task&action=show&task_id=%d">#%d</a>', Helper\escape($author), $task_id, $task_id) ?> +</p> +<div class="activity-description"> + <p><em><?= Helper\escape($task['title']) ?></em></p> + + <ul> + <li> + <?= Helper\escape($subtask['title']) ?> (<strong><?= Helper\escape($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 diff --git a/app/Template/event/subtask_update.php b/app/Template/event/subtask_update.php new file mode 100644 index 00000000..96a589dd --- /dev/null +++ b/app/Template/event/subtask_update.php @@ -0,0 +1,19 @@ +<p class="activity-title"> + <?= e('%s updated a subtask for the task <a href="?controller=task&action=show&task_id=%d">#%d</a>', Helper\escape($author), $task_id, $task_id) ?> +</p> +<div class="activity-description"> + <p><em><?= Helper\escape($task['title']) ?></em></p> + + <ul> + <li> + <?= Helper\escape($subtask['title']) ?> (<strong><?= Helper\escape($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> diff --git a/app/Template/event/task_assignee_change.php b/app/Template/event/task_assignee_change.php new file mode 100644 index 00000000..b346325e --- /dev/null +++ b/app/Template/event/task_assignee_change.php @@ -0,0 +1,12 @@ +<p class="activity-title"> + <?= e( + '%s change the assignee of the task <a href="?controller=task&action=show&task_id=%d">#%d</a> to %s', + Helper\escape($author), + $task_id, + $task_id, + Helper\escape($task['assignee_name'] ?: $task['assignee_username']) + ) ?> +</p> +<p class="activity-description"> + <em><?= Helper\escape($task['title']) ?></em> +</p>
\ No newline at end of file diff --git a/app/Template/event/task_close.php b/app/Template/event/task_close.php new file mode 100644 index 00000000..48d25678 --- /dev/null +++ b/app/Template/event/task_close.php @@ -0,0 +1,6 @@ +<p class="activity-title"> + <?= e('%s closed 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/Template/event/task_create.php b/app/Template/event/task_create.php new file mode 100644 index 00000000..2515af05 --- /dev/null +++ b/app/Template/event/task_create.php @@ -0,0 +1,6 @@ +<p class="activity-title"> + <?= e('%s created 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/Template/event/task_move_column.php b/app/Template/event/task_move_column.php new file mode 100644 index 00000000..f2aac8f7 --- /dev/null +++ b/app/Template/event/task_move_column.php @@ -0,0 +1,6 @@ +<p class="activity-title"> + <?= e('%s moved the task <a href="?controller=task&action=show&task_id=%d">#%d</a> to the column "%s"', Helper\escape($author), $task_id, $task_id, Helper\escape($task['column_title'])) ?> +</p> +<p class="activity-description"> + <em><?= Helper\escape($task['title']) ?></em> +</p>
\ No newline at end of file diff --git a/app/Template/event/task_move_position.php b/app/Template/event/task_move_position.php new file mode 100644 index 00000000..26cdeb13 --- /dev/null +++ b/app/Template/event/task_move_position.php @@ -0,0 +1,6 @@ +<p class="activity-title"> + <?= e('%s moved the task <a href="?controller=task&action=show&task_id=%d">#%d</a> to the position #%d in the column "%s"', Helper\escape($author), $task_id, $task_id, $task['position'], Helper\escape($task['column_title'])) ?> +</p> +<p class="activity-description"> + <em><?= Helper\escape($task['title']) ?></em> +</p>
\ No newline at end of file diff --git a/app/Template/event/task_open.php b/app/Template/event/task_open.php new file mode 100644 index 00000000..9623be74 --- /dev/null +++ b/app/Template/event/task_open.php @@ -0,0 +1,6 @@ +<p class="activity-title"> + <?= e('%s open 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/Template/event/task_update.php b/app/Template/event/task_update.php new file mode 100644 index 00000000..a270b936 --- /dev/null +++ b/app/Template/event/task_update.php @@ -0,0 +1,6 @@ +<p class="activity-title"> + <?= e('%s updated 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 |