mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:29:53 +01:00
18 lines
774 B
Text
18 lines
774 B
Text
- if notifications.count.zero?
|
|
%a.dropdown-item.text-center{ href: notifications_path('all'), data: { turbo_frame: "_top" } }
|
|
%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, data: { turbo_frame: "_top" } }
|
|
%i.fa.fa-fw.fa-chevron-right
|
|
= t(".new")
|
|
= link_to notifications_read_path, class: "dropdown-item text-center", data: { turbo_stream: true, turbo_method: :post } do
|
|
%i.fa.fa-fw.fa-check-double
|
|
= t(".mark_as_read")
|
|
- notifications.each do |notification|
|
|
.dropdown-item
|
|
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification:
|
|
|