From a07c5b962a9f6c609d72ce1a05c4a59ce57c9d2d Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 11 Aug 2024 05:17:49 +0200 Subject: [PATCH] Hide register button in simple layout when registrations are disabled --- app/views/about/index.html.haml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml index 5ddf24c1..9af47130 100644 --- a/app/views/about/index.html.haml +++ b/app/views/about/index.html.haml @@ -13,10 +13,11 @@ DEV %p.lead= APP_CONFIG["site_tagline"] .col-md-4 - %a.btn.btn-primary.d-grid{ href: url_for(new_user_registration_path) } - = t("voc.register_now") - .d-block.text-center.py-2.text-secondary - = t(".or") + - if Retrospring::Config.registrations_enabled? + %a.btn.btn-primary.d-grid{ href: url_for(new_user_registration_path) } + = t("voc.register_now") + .d-block.text-center.py-2.text-secondary + = t(".or") .card .card-body = bootstrap_form_for(User.new, as: :user, url: session_path(:user), data: { turbo: false }) do |f|