diff options
author | Hiroaki Ninomiya <me@treby.info> | 2017-05-16 07:41:09 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-16 00:41:09 +0200 |
commit | cb50ecdb073fdf88b9c535edd764f5de722b44e2 (patch) | |
tree | 5bbc7c720d1a132cb2c74b6755542db2b8c717e8 /app/views/shared | |
parent | 137912468216c1e7467212b7573b613f479eabb8 (diff) |
chore(landing_strip): hide signup path unless the instance allows registration. (#3055)
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/_landing_strip.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
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) |