Show project name in notifications
This commit is contained in:
@@ -7,6 +7,7 @@ New features:
|
|||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
* Show project name in notifications
|
||||||
* Allow priority changes for inverted priority scales
|
* Allow priority changes for inverted priority scales
|
||||||
* Add the possibility to attach template hooks with local variables and callback
|
* Add the possibility to attach template hooks with local variables and callback
|
||||||
* Add "reference" hooks
|
* Add "reference" hooks
|
||||||
|
|||||||
@@ -15,12 +15,26 @@
|
|||||||
|
|
||||||
<table class="table-striped table-scrolling table-small">
|
<table class="table-striped table-scrolling table-small">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th class="column-20"><?= t('Project') ?></th>
|
||||||
<th><?= t('Notification') ?></th>
|
<th><?= t('Notification') ?></th>
|
||||||
<th class="column-20"><?= t('Date') ?></th>
|
<th class="column-15"><?= t('Date') ?></th>
|
||||||
<th class="column-15"><?= t('Action') ?></th>
|
<th class="column-15"><?= t('Action') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php foreach ($notifications as $notification): ?>
|
<?php foreach ($notifications as $notification): ?>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<?php if (isset($notification['event_data']['task']['project_name'])): ?>
|
||||||
|
<?= $this->url->link(
|
||||||
|
$this->text->e($notification['event_data']['task']['project_name']),
|
||||||
|
'BoardViewController',
|
||||||
|
'show',
|
||||||
|
array('project_id' => $notification['event_data']['task']['project_id'])
|
||||||
|
)
|
||||||
|
?>
|
||||||
|
<?php elseif (isset($notification['event_data']['project_name'])): ?>
|
||||||
|
<?= $this->text->e($notification['event_data']['project_name']) ?>
|
||||||
|
<?php endif ?>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php if ($this->text->contains($notification['event_name'], 'subtask')): ?>
|
<?php if ($this->text->contains($notification['event_name'], 'subtask')): ?>
|
||||||
<i class="fa fa-tasks fa-fw"></i>
|
<i class="fa fa-tasks fa-fw"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user