retrospring/app/views/tabs/_notifications.haml

27 lines
1.1 KiB
Text
Raw Normal View History

2022-07-07 01:14:10 +02:00
.card
2020-04-25 17:51:00 +02:00
.list-group
2022-07-07 01:14:10 +02:00
= list_group_item t(".new"), notifications_path, badge: Notification.for(current_user).where(new: true).count
= list_group_item t(".all"), notifications_path('all')
2020-04-25 17:51:00 +02:00
2022-07-07 01:14:10 +02:00
.card
2020-04-25 17:51:00 +02:00
.card-header
Filter by Type
.list-group
2022-07-07 01:14:10 +02:00
= list_group_item t('.answer'),
2020-05-10 09:25:34 +02:00
notifications_path('answer'),
badge: Notification.for(current_user).where(target_type: 'Answer', new: true).count
2022-07-07 01:14:10 +02:00
= list_group_item t('.smile'),
2020-05-10 09:25:34 +02:00
notifications_path('smile'),
badge: Notification.for(current_user).where(target_type: 'Smile', new: true).count
2022-07-07 01:14:10 +02:00
= list_group_item t('.comment'),
2020-05-10 09:25:34 +02:00
notifications_path('comment'),
badge: Notification.for(current_user).where(target_type: 'Comment', new: true).count
2022-07-07 01:14:10 +02:00
= list_group_item t('.commentsmile'),
2020-05-10 09:25:34 +02:00
notifications_path('commentsmile'),
badge: Notification.for(current_user).where(target_type: 'CommentSmile', new: true).count
2022-07-07 01:14:10 +02:00
= list_group_item t('.relationship'),
2020-05-10 09:25:34 +02:00
notifications_path('relationship'),
badge: Notification.for(current_user).where(target_type: 'Relationship', new: true).count
2020-05-10 09:25:34 +02:00
.d-none.d-sm-block= render 'shared/links'