mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 18:46:05 +01:00
ede3ad1b92
- Add display of content that was replied to/with - Instead of marking notifications new, only show new items and hide seen entries - Add a 'New Notifications' page and set it as default - Add proper display if there are no new notifications - Adjust theme to fit new changes
15 lines
1.3 KiB
Text
15 lines
1.3 KiB
Text
.col-md-3.col-xs-12.col-sm-4
|
|
.panel.panel-default.hidden-xs
|
|
.list-group
|
|
= list_group_item "New Notifications", notifications_path, badge: Notification.for(current_user).where(new: true).count
|
|
= list_group_item "All Notifications", notifications_path('all')
|
|
|
|
.panel.panel-default.hidden-xs
|
|
.panel-heading
|
|
Filter by Type
|
|
.list-group
|
|
= list_group_item t('views.notifications.tabs.answer'), notifications_path('answer'), badge: Notification.for(current_user).where(target_type: "Answer", new: true).count
|
|
= list_group_item t('views.notifications.tabs.smile'), notifications_path('smile'), badge: Notification.for(current_user).where(target_type: "Smile", new: true).count
|
|
= list_group_item t('views.notifications.tabs.comment'), notifications_path('comment'), badge: Notification.for(current_user).where(target_type: "Comment", new: true).count
|
|
= list_group_item t('views.notifications.tabs.commentsmile'), notifications_path('commentsmile'), badge: Notification.for(current_user).where(target_type: "CommentSmile", new: true).count
|
|
= list_group_item t('views.notifications.tabs.relationship'), notifications_path('relationship'), badge: Notification.for(current_user).where(target_type: "Relationship", new: true).count
|