summaryrefslogtreecommitdiff
path: root/app/Template/header.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-03 12:09:27 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-03 12:09:27 -0400
commitd67d7c54e65e80d1b484490e42dbecb969aa7686 (patch)
treee62446885fac0d3af5b29d409d8e9a4f6c50940e /app/Template/header.php
parentb5a2b8f9f7ac9ef947357acd3981993159d64b52 (diff)
Add web notifications
Diffstat (limited to 'app/Template/header.php')
-rw-r--r--app/Template/header.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Template/header.php b/app/Template/header.php
index 0bcfdbbc..19ffbbf5 100644
--- a/app/Template/header.php
+++ b/app/Template/header.php
@@ -25,6 +25,10 @@
</li>
<?php endif ?>
<li>
+ <?php if ($this->user->hasNotifications()): ?>
+ <?= $this->url->link('<i class="fa fa-bell web-notification-icon"></i>', 'app', 'notifications', array('user_id' => $this->user->getId()), false, '', t('Unread notifications')) ?>
+ <?php endif ?>
+
<?= $this->url->link(t('Logout'), 'auth', 'logout') ?>
<span class="username hide-tablet">(<?= $this->user->getProfileLink() ?>)</span>
</li>