Added event for removed comments with some refactoring
This commit is contained in:
11
app/Template/event/comment_remove.php
Normal file
11
app/Template/event/comment_remove.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<p class="activity-title">
|
||||
<?= 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']))
|
||||
) ?>
|
||||
<span class="activity-date"><?= $this->dt->datetime($date_creation) ?></span>
|
||||
</p>
|
||||
<div class="activity-description">
|
||||
<p class="activity-task-title"><?= $this->text->e($task['title']) ?></p>
|
||||
<div class="markdown"><?= $this->text->markdown($comment['comment']) ?></div>
|
||||
</div>
|
||||
@@ -7,4 +7,7 @@
|
||||
</p>
|
||||
<div class="activity-description">
|
||||
<p class="activity-task-title"><?= $this->text->e($task['title']) ?></p>
|
||||
<?php if (! empty($comment['comment'])): ?>
|
||||
<div class="markdown"><?= $this->text->markdown($comment['comment']) ?></div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
7
app/Template/notification/comment_remove.php
Normal file
7
app/Template/notification/comment_remove.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<h3><?= t('Comment removed') ?></h3>
|
||||
|
||||
<?= $this->text->markdown($comment['comment']) ?>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
Reference in New Issue
Block a user