summaryrefslogtreecommitdiffstats
path: root/client/components/notifications/notificationsDrawer.jade
blob: 67fc6e65b80be2b8d2cb0deb687836d8fc0a5ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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