diff options
author | Michael <michaelvickers.uk@gmail.com> | 2018-10-16 01:39:42 +0100 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2018-10-15 17:39:42 -0700 |
commit | cc81f9d4f5a9857e024829613ad670bc51056be5 (patch) | |
tree | ff27bfd8ce38eb174e1598f90e60077dbeb39466 /app/Template | |
parent | 00228ac12fedaf436869289c7c114dc6f76dd14c (diff) |
Write log entry on file removal
Diffstat (limited to 'app/Template')
-rwxr-xr-x | app/Template/event/task_file_destroy.php | 10 | ||||
-rw-r--r-- | app/Template/notification/task_file_destroy.php | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/app/Template/event/task_file_destroy.php b/app/Template/event/task_file_destroy.php new file mode 100755 index 00000000..cb21c42a --- /dev/null +++ b/app/Template/event/task_file_destroy.php @@ -0,0 +1,10 @@ +<p class="activity-title"> + <?= e('%s removed a file from 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'])) + ) ?> + <small class="activity-date"><?= $this->dt->datetime($date_creation) ?></small> +</p> +<div class="activity-description"> + <p class="activity-task-title"><?= $this->text->e($file['name']) ?></p> +</div> diff --git a/app/Template/notification/task_file_destroy.php b/app/Template/notification/task_file_destroy.php new file mode 100644 index 00000000..dbd79c5e --- /dev/null +++ b/app/Template/notification/task_file_destroy.php @@ -0,0 +1,5 @@ +<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2> + +<p><?= t('Attachment removed "%s"', $file['name']) ?></p> + +<?= $this->render('notification/footer', array('task' => $task)) ?> |