Write log entry on file removal

This commit is contained in:
Michael
2018-10-16 01:39:42 +01:00
committed by fguillot
parent 00228ac12f
commit cc81f9d4f5
7 changed files with 59 additions and 0 deletions

View File

@@ -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>

View File

@@ -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)) ?>