Fix incorrectly updated conditions

This commit is contained in:
Dominik Kwiatek 2020-11-17 21:33:49 +01:00
parent cddb50cc22
commit 3db3ccfc41
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
- if APP_CONFIG.dig(:features, :discover, :enabled) || current_user.mod? - if APP_CONFIG.dig(:features, :discover, :enabled) || current_user.mod?
= nav_entry t('views.navigation.discover'), discover_path = nav_entry t('views.navigation.discover'), discover_path
%ul.nav.navbar-nav %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') } %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 } } %a.nav-link{ href: '#', data: { target: '#modal-list-memberships', toggle: :modal } }
%i.fa.fa-list.hidden-xs %i.fa.fa-list.hidden-xs