From 05292478511908174993e3d63e97797475fc58ad Mon Sep 17 00:00:00 2001 From: Bandie Date: Thu, 24 Nov 2022 12:58:15 +0100 Subject: [PATCH] Keep place of link consistent --- app/views/navigation/dropdown/_notifications.html.haml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/navigation/dropdown/_notifications.html.haml b/app/views/navigation/dropdown/_notifications.html.haml index 2a3b04b9..e8e90e05 100644 --- a/app/views/navigation/dropdown/_notifications.html.haml +++ b/app/views/navigation/dropdown/_notifications.html.haml @@ -1,16 +1,15 @@ .dropdown-menu.dropdown-menu-right.notification-dropdown{ id: "rs-#{size}-nav-notifications" } - 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') } %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