summaryrefslogtreecommitdiff
path: root/app/Template/dashboard
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-08-21 13:45:06 -0400
committerFrederic Guillot <fred@kanboard.net>2016-08-21 13:45:06 -0400
commit093905c895d449eaf08652d6597865008b119840 (patch)
tree01f4e71a2a17b894dce8455d6af370616ad89a67 /app/Template/dashboard
parent900e98068e83ab6b132c50866010321bd505b2d2 (diff)
Show project name in notifications
Diffstat (limited to 'app/Template/dashboard')
-rw-r--r--app/Template/dashboard/notifications.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/app/Template/dashboard/notifications.php b/app/Template/dashboard/notifications.php
index a189d74f..4fb59e24 100644
--- a/app/Template/dashboard/notifications.php
+++ b/app/Template/dashboard/notifications.php
@@ -15,13 +15,27 @@
<table class="table-striped table-scrolling table-small">
<tr>
+ <th class="column-20"><?= t('Project') ?></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>
</tr>
<?php foreach ($notifications as $notification): ?>
<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>
<?php if ($this->text->contains($notification['event_name'], 'subtask')): ?>
<i class="fa fa-tasks fa-fw"></i>
<?php elseif ($this->text->contains($notification['event_name'], 'task.move')): ?>