17 lines
665 B
Plaintext
17 lines
665 B
Plaintext
.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")
|
|
.dropdown-item.text-center.p-2
|
|
%i.fa.fa-bell-o.notification__bell-icon
|
|
%p= t(".none")
|
|
- else
|
|
%a.dropdown-item.text-center{ href: notifications_path }
|
|
%i.fa.fa-fw.fa-chevron-right
|
|
= t(".new")
|
|
- notifications.each do |notification|
|
|
.dropdown-item
|
|
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
|
|