2020-03-27 11:35:03 -06:00
|
|
|
template(name='notificationsDrawer')
|
|
|
|
|
section#notifications-drawer(class="{{#if $.Session.get 'showReadNotifications'}}show-read{{/if}}")
|
|
|
|
|
.header
|
|
|
|
|
if $.Session.get 'showReadNotifications'
|
2020-04-01 14:50:31 -06:00
|
|
|
a.toggle-read {{_ 'filter-by-unread'}}
|
2020-03-27 11:35:03 -06:00
|
|
|
else
|
2020-04-01 14:50:31 -06:00
|
|
|
a.toggle-read {{_ 'view-all'}}
|
|
|
|
|
h5 {{_ 'notifications'}}
|
2020-03-27 11:35:03 -06:00
|
|
|
if($gt unreadNotifications 0)
|
|
|
|
|
|(#{unreadNotifications})
|
2025-12-22 21:06:44 +02:00
|
|
|
a.close ❌
|
2020-03-27 11:35:03 -06:00
|
|
|
ul.notifications
|
|
|
|
|
each transformedProfile.notifications
|
2023-11-07 19:05:11 +01:00
|
|
|
+notification(activityData=activityObj index=dbIndex read=read)
|
2020-03-27 11:35:03 -06:00
|
|
|
if($gt unreadNotifications 0)
|
2020-04-01 14:50:31 -06:00
|
|
|
a.all-read {{_ 'mark-all-as-read'}}
|
2020-04-08 13:14:29 -06:00
|
|
|
if ($and ($.Session.get 'showReadNotifications') ($gt readNotifications 0))
|
|
|
|
|
a.remove-read
|
2025-12-22 21:06:44 +02:00
|
|
|
| 🗑️
|
2020-04-08 13:14:29 -06:00
|
|
|
| {{_ 'remove-all-read'}}
|