summaryrefslogtreecommitdiffstats
path: root/client/components/notifications/notificationsDrawer.jade
blob: fee6aef6785ebe8b93eaeaafec09d56c22ce6962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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'}}
    if ($and ($.Session.get 'showReadNotifications') ($gt readNotifications 0))
      a.remove-read
        i.fa.fa-trash
        | {{_ 'remove-all-read'}}