2
0

notificationsDrawer.jade 609 B

12345678910111213141516
  1. template(name='notificationsDrawer')
  2. section#notifications-drawer(class="{{#if $.Session.get 'showReadNotifications'}}show-read{{/if}}")
  3. .header
  4. if $.Session.get 'showReadNotifications'
  5. a.toggle-read Filter by Unread
  6. else
  7. a.toggle-read View All
  8. h5 Notifications
  9. if($gt unreadNotifications 0)
  10. |(#{unreadNotifications})
  11. a.fa.fa-times-thin.close
  12. ul.notifications
  13. each transformedProfile.notifications
  14. +notification(activityData=activity index=dbIndex read=read)
  15. if($gt unreadNotifications 0)
  16. a.all-read Mark all as read