From 3db3ccfc412bbf6c8da6a7012d2b934e0bff8f0d Mon Sep 17 00:00:00 2001 From: Dominik Kwiatek Date: Tue, 17 Nov 2020 21:33:49 +0100 Subject: [PATCH] Fix incorrectly updated conditions --- app/views/navigation/_main.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/navigation/_main.haml b/app/views/navigation/_main.haml index 8da51976..c08b1df9 100644 --- a/app/views/navigation/_main.haml +++ b/app/views/navigation/_main.haml @@ -11,7 +11,7 @@ - if APP_CONFIG.dig(:features, :discover, :enabled) || current_user.mod? = nav_entry t('views.navigation.discover'), discover_path %ul.nav.navbar-nav - - unless @user.nil? && @user == current_user + - if @user.present? && @user != current_user %li.nav-item.d-none.d-sm-block{ data: { toggle: 'tooltip', placement: 'bottom' }, title: t('views.actions.list') } %a.nav-link{ href: '#', data: { target: '#modal-list-memberships', toggle: :modal } } %i.fa.fa-list.hidden-xs