diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 4 | ||||
-rw-r--r-- | app/views/shared/_landing_strip.html.haml | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 92ffac33b..8f1cd8fce 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -9,6 +9,10 @@ module ApplicationHelper !user_signed_in? && !single_user_mode? end + def open_registrations? + Setting.open_registrations + end + def add_rtl_body_class(other_classes) other_classes = "#{other_classes} rtl" if [:ar, :fa, :he].include?(I18n.locale) other_classes diff --git a/app/views/shared/_landing_strip.html.haml b/app/views/shared/_landing_strip.html.haml index c6b4a666b..3cc61a2c3 100644 --- a/app/views/shared/_landing_strip.html.haml +++ b/app/views/shared/_landing_strip.html.haml @@ -1,6 +1,6 @@ .landing-strip = t('landing_strip_html', name: content_tag(:span, display_name(account), class: :emojify), - domain: site_hostname, - link_to_root_path: link_to(content_tag(:strong, site_hostname), root_path), - sign_up_path: new_user_registration_path) + link_to_root_path: link_to(content_tag(:strong, site_hostname), root_path)) + - if open_registrations? + = t('landing_strip_signup_html', sign_up_path: new_user_registration_path) |