about summary refs log tree commit diff
path: root/app/views/auth/shared
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/auth/shared
parent885711afb97b772f7c970ed16e17de799a74c923 (diff)
When registrations closed, link "Sign up" to joinmastodon.org (#8395)
Fix #8393
Diffstat (limited to 'app/views/auth/shared')
-rw-r--r--app/views/auth/shared/_links.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/auth/shared/_links.html.haml b/app/views/auth/shared/_links.html.haml
index 08b385092..516c625a6 100644
--- a/app/views/auth/shared/_links.html.haml
+++ b/app/views/auth/shared/_links.html.haml
@@ -3,7 +3,7 @@
     %li= link_to t('auth.login'), new_session_path(resource_name)
 
   - if devise_mapping.registerable? && controller_name != 'registrations'
-    %li= link_to t('auth.register'), new_registration_path(resource_name)
+    %li= link_to t('auth.register'), open_registrations? ? new_registration_path(resource_name) : 'https://joinmastodon.org/#getting-started'
 
   - if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
     %li= link_to t('auth.forgot_password'), new_password_path(resource_name)