summaryrefslogtreecommitdiff
path: root/app/Template/event
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-26 20:43:08 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-26 20:43:08 -0500
commitc6b9a2a92e60cb4488748d597a9df14c556236d3 (patch)
tree4e02c0bbb0eab622be4c6bcadcb9495d681dc900 /app/Template/event
parentb13dba46e7dbe456ee59f65fc0bc3a26dfc9e17d (diff)
Move event and notification templates to a subfolder
Diffstat (limited to 'app/Template/event')
-rw-r--r--app/Template/event/comment_create.php7
-rw-r--r--app/Template/event/comment_update.php6
-rw-r--r--app/Template/event/subtask_create.php19
-rw-r--r--app/Template/event/subtask_update.php19
-rw-r--r--app/Template/event/task_assignee_change.php12
-rw-r--r--app/Template/event/task_close.php6
-rw-r--r--app/Template/event/task_create.php6
-rw-r--r--app/Template/event/task_move_column.php6
-rw-r--r--app/Template/event/task_move_position.php6
-rw-r--r--app/Template/event/task_open.php6
-rw-r--r--app/Template/event/task_update.php6
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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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&amp;action=show&amp;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