Keep place of link consistent
This commit is contained in:
parent
ecb68eaee4
commit
0529247851
|
@ -1,16 +1,15 @@
|
||||||
.dropdown-menu.dropdown-menu-right.notification-dropdown{ id: "rs-#{size}-nav-notifications" }
|
.dropdown-menu.dropdown-menu-right.notification-dropdown{ id: "rs-#{size}-nav-notifications" }
|
||||||
- if notifications.count.zero?
|
- if notifications.count.zero?
|
||||||
.dropdown-item.text-center.p-2
|
|
||||||
%i.fa.fa-bell-o.notification__bell-icon
|
|
||||||
%p= t(".none")
|
|
||||||
%a.dropdown-item.text-center{ href: notifications_path('all') }
|
%a.dropdown-item.text-center{ href: notifications_path('all') }
|
||||||
%i.fa.fa-fw.fa-chevron-right
|
%i.fa.fa-fw.fa-chevron-right
|
||||||
= t(".all")
|
= t(".all")
|
||||||
|
.dropdown-item.text-center.p-2
|
||||||
|
%i.fa.fa-bell-o.notification__bell-icon
|
||||||
|
%p= t(".none")
|
||||||
- else
|
- else
|
||||||
%a.dropdown-item.text-center{ href: notifications_path }
|
%a.dropdown-item.text-center{ href: notifications_path }
|
||||||
%i.fa.fa-fw.fa-chevron-right
|
%i.fa.fa-fw.fa-chevron-right
|
||||||
= t(".new")
|
= t(".new")
|
||||||
|
|
||||||
- notifications.each do |notification|
|
- notifications.each do |notification|
|
||||||
.dropdown-item
|
.dropdown-item
|
||||||
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
||||||
|
|
Loading…
Reference in New Issue