2020-03-27 11:35:03 -06:00
|
|
|
template(name='notificationsDrawer')
|
|
|
|
|
section#notifications-drawer(class="{{#if $.Session.get 'showReadNotifications'}}show-read{{/if}}")
|
|
|
|
|
.header
|
Fix mentions and notifications drawer.
Thanks to xet7 !
Fixes #6062,
fixes #6003,
fixes #5996,
fixes #5720,
fixes #5911,
fixes #5792,
fixes #5163,
fixes #4431,
fixes #4126,
fixes #3363,
fixes #3150
2026-01-14 21:02:10 +02:00
|
|
|
a.notification-menu-toggle ☰
|
|
|
|
|
.notification-menu(class="{{#if $.Session.get 'showNotificationMenu'}}is-open{{/if}}")
|
|
|
|
|
.menu-section
|
|
|
|
|
a.menu-item(class="{{#unless $.Session.get 'showReadNotifications'}}selected{{/unless}}")
|
|
|
|
|
span.check-icon {{#unless $.Session.get 'showReadNotifications'}}✓{{/unless}}
|
|
|
|
|
span.menu-icon 📭
|
|
|
|
|
span {{_ 'filter-by-unread'}}
|
|
|
|
|
a.menu-item(class="{{#if $.Session.get 'showReadNotifications'}}selected{{/if}}")
|
|
|
|
|
span.check-icon {{#if $.Session.get 'showReadNotifications'}}✓{{/if}}
|
|
|
|
|
span.menu-icon 📋
|
|
|
|
|
span {{_ 'view-all'}}
|
|
|
|
|
.menu-divider
|
|
|
|
|
.menu-section
|
|
|
|
|
if($gt unreadNotifications 0)
|
|
|
|
|
a.menu-item.mark-all-read
|
|
|
|
|
span.check-icon
|
|
|
|
|
span.menu-icon ✅
|
|
|
|
|
span {{_ 'mark-all-as-read'}}
|
|
|
|
|
if ($and ($.Session.get 'showReadNotifications') ($gt readNotifications 0))
|
|
|
|
|
a.menu-item.mark-all-unread
|
|
|
|
|
span.check-icon
|
|
|
|
|
span.menu-icon 📬
|
|
|
|
|
span {{_ 'mark-all-as-unread'}}
|
|
|
|
|
if ($and ($.Session.get 'showReadNotifications') ($gt readNotifications 0))
|
|
|
|
|
a.menu-item.delete-read
|
|
|
|
|
span.check-icon
|
|
|
|
|
span.menu-icon 🗑️
|
|
|
|
|
span {{_ 'remove-all-read'}}
|
|
|
|
|
a.menu-item.delete-all
|
|
|
|
|
span.check-icon
|
|
|
|
|
span.menu-icon 🗑️
|
|
|
|
|
span {{_ 'delete-all-notifications'}}
|
2020-04-01 14:50:31 -06:00
|
|
|
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
|
Fix mentions and notifications drawer.
Thanks to xet7 !
Fixes #6062,
fixes #6003,
fixes #5996,
fixes #5720,
fixes #5911,
fixes #5792,
fixes #5163,
fixes #4431,
fixes #4126,
fixes #3363,
fixes #3150
2026-01-14 21:02:10 +02:00
|
|
|
each notifications
|
2023-11-07 19:05:11 +01:00
|
|
|
+notification(activityData=activityObj index=dbIndex read=read)
|