Retrospring/app/views/notifications/_notification_tabs.html.haml

9 lines
814 B
Plaintext
Raw Normal View History

2014-12-09 14:07:04 -08:00
.col-md-3.col-xs-12.col-sm-3
2015-01-30 15:47:28 -08:00
.panel.panel-default.hidden-xs
.list-group
2015-04-19 08:07:35 -07:00
= list_group_item "All notifications", notifications_path, badge: Notification.for(current_user).where(new: true).count
= list_group_item "Answers", notifications_path('answer'), badge: Notification.for(current_user).where(target_type: "Answer", new: true).count
= list_group_item "Smiles", notifications_path('smile'), badge: Notification.for(current_user).where(target_type: "Smile", new: true).count
= list_group_item "Comments", notifications_path('comment'), badge: Notification.for(current_user).where(target_type: "Comment", new: true).count
= list_group_item "Followers", notifications_path('relationship'), badge: Notification.for(current_user).where(target_type: "Relationship", new: true).count