about summary refs log tree commit diff
path: root/app/views/layouts/public.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-23 19:11:41 +0200
committerGitHub <noreply@github.com>2018-08-23 19:11:41 +0200
commit69ba8f063c43139f811a747a3c17feadd29d423a (patch)
tree79ca6290f3b383b2f70f6d061c62a996375da5e7 /app/views/layouts/public.html.haml
parent885711afb97b772f7c970ed16e17de799a74c923 (diff)
When registrations closed, link "Sign up" to joinmastodon.org (#8395)
Fix #8393
Diffstat (limited to 'app/views/layouts/public.html.haml')
-rw-r--r--app/views/layouts/public.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml
index ca9dac8bb..6bf7efb23 100644
--- a/app/views/layouts/public.html.haml
+++ b/app/views/layouts/public.html.haml
@@ -14,7 +14,7 @@
             = link_to t('settings.back'), root_url, class: 'nav-link nav-button webapp-btn'
           - else
             = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn nav-link nav-button'
-            = link_to t('auth.register'), new_user_registration_path, class: 'webapp-btn nav-link nav-button'
+            = link_to t('auth.register'), open_registrations? ? new_user_registration_path : 'https://joinmastodon.org/#getting-started', class: 'webapp-btn nav-link nav-button'
 
     .container= yield