From ec0ecc5b0387924f061865f4ec12dbfc5b7018fe Mon Sep 17 00:00:00 2001
From: Frederic Guillot
Date: Sun, 17 Jul 2016 17:15:14 -0400
Subject: Added event for removed comments with some refactoring
---
app/Template/event/comment_remove.php | 11 +++++++++++
app/Template/event/comment_update.php | 3 +++
app/Template/notification/comment_remove.php | 7 +++++++
3 files changed, 21 insertions(+)
create mode 100644 app/Template/event/comment_remove.php
create mode 100644 app/Template/notification/comment_remove.php
(limited to 'app/Template')
diff --git a/app/Template/event/comment_remove.php b/app/Template/event/comment_remove.php
new file mode 100644
index 00000000..ead7d56a
--- /dev/null
+++ b/app/Template/event/comment_remove.php
@@ -0,0 +1,11 @@
+
+ = e('%s removed a comment on the task %s',
+ $this->text->e($author),
+ $this->url->link(t('#%d', $task['id']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))
+ ) ?>
+ = $this->dt->datetime($date_creation) ?>
+
+
+
= $this->text->e($task['title']) ?>
+
= $this->text->markdown($comment['comment']) ?>
+
diff --git a/app/Template/event/comment_update.php b/app/Template/event/comment_update.php
index 5a0821bd..5be598ac 100644
--- a/app/Template/event/comment_update.php
+++ b/app/Template/event/comment_update.php
@@ -7,4 +7,7 @@
= $this->text->e($task['title']) ?>
+
+
= $this->text->markdown($comment['comment']) ?>
+
diff --git a/app/Template/notification/comment_remove.php b/app/Template/notification/comment_remove.php
new file mode 100644
index 00000000..928623ec
--- /dev/null
+++ b/app/Template/notification/comment_remove.php
@@ -0,0 +1,7 @@
+= $this->text->e($task['title']) ?> (#= $task['id'] ?>)
+
+= t('Comment removed') ?>
+
+= $this->text->markdown($comment['comment']) ?>
+
+= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
--
cgit v1.2.3