Added internal task links to activity stream
This commit is contained in:
16
app/Template/event/task_internal_link_create_update.php
Normal file
16
app/Template/event/task_internal_link_create_update.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<p class="activity-title">
|
||||
<?= e('%s set a new internal link for 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">
|
||||
<?= e(
|
||||
'This task is now linked to the task %s with the relation "%s"',
|
||||
$this->url->link(t('#%d', $task_link['opposite_task_id']), 'TaskViewController', 'show', array('task_id' => $task_link['opposite_task_id'])),
|
||||
$this->text->e($task_link['label'])
|
||||
) ?>
|
||||
</p>
|
||||
</div>
|
||||
16
app/Template/event/task_internal_link_delete.php
Normal file
16
app/Template/event/task_internal_link_delete.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<p class="activity-title">
|
||||
<?= e('%s removed an internal link for 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">
|
||||
<?= e(
|
||||
'The link with the relation "%s" to the task %s have been removed',
|
||||
$this->text->e($task_link['label']),
|
||||
$this->url->link(t('#%d', $task_link['opposite_task_id']), 'TaskViewController', 'show', array('task_id' => $task_link['opposite_task_id']))
|
||||
) ?>
|
||||
</p>
|
||||
</div>
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
<p><?= t('New attachment added "%s"', $file['name']) ?></p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p>
|
||||
<?= e(
|
||||
'This task is now linked to the task %s with the relation "%s"',
|
||||
$this->url->link(t('#%d', $task_link['opposite_task_id']), 'TaskViewController', 'show', array('task_id' => $task_link['opposite_task_id'])),
|
||||
$this->text->e($task_link['label'])
|
||||
) ?>
|
||||
</p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
11
app/Template/notification/task_internal_link_delete.php
Normal file
11
app/Template/notification/task_internal_link_delete.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<h2><?= $this->text->e($task['title']) ?> (#<?= $task['id'] ?>)</h2>
|
||||
|
||||
<p>
|
||||
<?= e(
|
||||
'The link with the relation "%s" to the task %s have been removed',
|
||||
$this->text->e($task_link['label']),
|
||||
$this->url->link(t('#%d', $task_link['opposite_task_id']), 'TaskViewController', 'show', array('task_id' => $task_link['opposite_task_id']))
|
||||
) ?>
|
||||
</p>
|
||||
|
||||
<?= $this->render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?>
|
||||
Reference in New Issue
Block a user