Hide register button in simple layout when registrations are disabled
This commit is contained in:
parent
8180fe683c
commit
a07c5b962a
|
@ -13,10 +13,11 @@
|
||||||
DEV
|
DEV
|
||||||
%p.lead= APP_CONFIG["site_tagline"]
|
%p.lead= APP_CONFIG["site_tagline"]
|
||||||
.col-md-4
|
.col-md-4
|
||||||
%a.btn.btn-primary.d-grid{ href: url_for(new_user_registration_path) }
|
- if Retrospring::Config.registrations_enabled?
|
||||||
= t("voc.register_now")
|
%a.btn.btn-primary.d-grid{ href: url_for(new_user_registration_path) }
|
||||||
.d-block.text-center.py-2.text-secondary
|
= t("voc.register_now")
|
||||||
= t(".or")
|
.d-block.text-center.py-2.text-secondary
|
||||||
|
= t(".or")
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
= bootstrap_form_for(User.new, as: :user, url: session_path(:user), data: { turbo: false }) do |f|
|
= bootstrap_form_for(User.new, as: :user, url: session_path(:user), data: { turbo: false }) do |f|
|
||||||
|
|
Loading…
Reference in New Issue