summaryrefslogtreecommitdiffstats
path: root/client/components/notifications/notificationsDrawer.jade
diff options
context:
space:
mode:
authorNicoP-S <paetni1@gmail.com>2020-04-02 20:43:36 +0200
committerGitHub <noreply@github.com>2020-04-02 20:43:36 +0200
commite47ff25d458a0f7f7e61f9397e1730df21dc5cb7 (patch)
tree5e42af18c820337c1eedf837409bbb056acaa83d /client/components/notifications/notificationsDrawer.jade
parent7fa9603f9d53594227258d76a78af4023dc325b0 (diff)
parent1e0b53eb9bcfa6a2833ee2f268f480ca7d9838d7 (diff)
downloadwekan-e47ff25d458a0f7f7e61f9397e1730df21dc5cb7.tar.gz
wekan-e47ff25d458a0f7f7e61f9397e1730df21dc5cb7.tar.bz2
wekan-e47ff25d458a0f7f7e61f9397e1730df21dc5cb7.zip
Merge pull request #2 from wekan/master
Merge Wekan
Diffstat (limited to 'client/components/notifications/notificationsDrawer.jade')
-rw-r--r--client/components/notifications/notificationsDrawer.jade16
1 files changed, 16 insertions, 0 deletions
diff --git a/client/components/notifications/notificationsDrawer.jade b/client/components/notifications/notificationsDrawer.jade
new file mode 100644
index 00000000..01117009
--- /dev/null
+++ b/client/components/notifications/notificationsDrawer.jade
@@ -0,0 +1,16 @@
+template(name='notificationsDrawer')
+ section#notifications-drawer(class="{{#if $.Session.get 'showReadNotifications'}}show-read{{/if}}")
+ .header
+ if $.Session.get 'showReadNotifications'
+ a.toggle-read {{_ 'filter-by-unread'}}
+ else
+ a.toggle-read {{_ 'view-all'}}
+ h5 {{_ 'notifications'}}
+ if($gt unreadNotifications 0)
+ |(#{unreadNotifications})
+ a.fa.fa-times-thin.close
+ ul.notifications
+ each transformedProfile.notifications
+ +notification(activityData=activity index=dbIndex read=read)
+ if($gt unreadNotifications 0)
+ a.all-read {{_ 'mark-all-as-read'}}