2
0

notificationsDrawer.jade 800 B

1234567891011121314151617181920
  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=activityObj index=dbIndex read=read)
  15. if($gt unreadNotifications 0)
  16. a.all-read {{_ 'mark-all-as-read'}}
  17. if ($and ($.Session.get 'showReadNotifications') ($gt readNotifications 0))
  18. a.remove-read
  19. i.fa.fa-trash
  20. | {{_ 'remove-all-read'}}