Hide sign up button when registration are disabled
This commit is contained in:
parent
9bfabe677a
commit
b8aaad6318
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
|||
= link_to content_tag(:div, nil, class: 'diaspora_header_logo branding-header-logo'), root_path
|
||||
|
||||
%ul#landing_nav
|
||||
- unless current_page?(controller: :registrations, action: :new)
|
||||
- if AppConfig.settings.enable_registrations? && !current_page?(controller: :registrations, action: :new)
|
||||
%li= link_to t('devise.shared.links.sign_up'), new_user_registration_path, class: 'login'
|
||||
%li= link_to t('devise.shared.links.sign_in'), new_user_session_path, class: 'login'
|
||||
#lightbox
|
||||
|
|
|
|||
Loading…
Reference in a new issue