diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-03-11 19:01:40 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-03-11 19:01:40 -0500 |
commit | cfd3000d833d3a99df0b4248e3b6160e9be4f22a (patch) | |
tree | 2a4ccff357a394670a49fd4447f3ebaee637b667 /app/Template/header | |
parent | bb9e7916574bd7e21550bf7505757fccae6cbdd0 (diff) |
Move notifications outside of dashboard
Diffstat (limited to 'app/Template/header')
-rw-r--r-- | app/Template/header/user_notifications.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/Template/header/user_notifications.php b/app/Template/header/user_notifications.php index 83c545d2..036fee29 100644 --- a/app/Template/header/user_notifications.php +++ b/app/Template/header/user_notifications.php @@ -1,5 +1,7 @@ +<span class="notification"> <?php if ($this->user->hasNotifications()): ?> - <span class="notification"> - <?= $this->url->link('<i class="fa fa-bell web-notification-icon"></i>', 'DashboardController', 'notifications', array('user_id' => $this->user->getId()), false, '', t('Unread notifications')) ?> - </span> + <?= $this->modal->mediumIcon('bell web-notification-icon', t('Unread notifications'), 'WebNotificationController', 'show', array('user_id' => $this->user->getId())) ?> +<?php else: ?> + <?= $this->modal->mediumIcon('bell', t('My notifications'), 'WebNotificationController', 'show', array('user_id' => $this->user->getId())) ?> <?php endif ?> +</span> |