about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-04-28 22:45:37 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-04-28 15:45:37 +0200
commit01c206326f51867d56d9b07bc89ab60049e75aec (patch)
tree8abed3154e153329e5ef5013a95588fff10a549c
parent9566893cc973671f151ceabf266d260ebba57492 (diff)
Hide get started link when register closed (#2583)
-rw-r--r--app/views/about/_links.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/about/_links.html.haml b/app/views/about/_links.html.haml
index 492c71320..f85a3407e 100644
--- a/app/views/about/_links.html.haml
+++ b/app/views/about/_links.html.haml
@@ -5,7 +5,8 @@
       - if user_signed_in?
         %li= link_to t('about.get_started'), root_path
       - else
-        %li= link_to t('about.get_started'), new_user_registration_path
+        - if @instance_presenter.open_registrations
+          %li= link_to t('about.get_started'), new_user_registration_path
         %li= link_to t('auth.login'), new_user_session_path
       %li= link_to t('about.terms'), terms_path
       %li= link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon'