2022-07-17 11:53:53 -07:00
|
|
|
.dropdown-menu.dropdown-menu-right.notification-dropdown{ id: "rs-#{size}-nav-notifications" }
|
|
|
|
- if notifications.count.zero?
|
|
|
|
%a.dropdown-item.text-center{ href: notifications_path('all') }
|
|
|
|
%i.fa.fa-fw.fa-chevron-right
|
|
|
|
= t(".all")
|
2022-11-24 03:58:15 -08:00
|
|
|
.dropdown-item.text-center.p-2
|
|
|
|
%i.fa.fa-bell-o.notification__bell-icon
|
|
|
|
%p= t(".none")
|
2022-07-17 11:53:53 -07:00
|
|
|
- else
|
2022-11-23 17:46:32 -08:00
|
|
|
%a.dropdown-item.text-center{ href: notifications_path }
|
|
|
|
%i.fa.fa-fw.fa-chevron-right
|
|
|
|
= t(".new")
|
2022-07-17 11:53:53 -07:00
|
|
|
- notifications.each do |notification|
|
|
|
|
.dropdown-item
|
|
|
|
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
|
|
|
|