From 01c206326f51867d56d9b07bc89ab60049e75aec Mon Sep 17 00:00:00 2001
From: Yamagishi Kazutoshi <ykzts@desire.sh>
Date: Fri, 28 Apr 2017 22:45:37 +0900
Subject: [PATCH] Hide get started link when register closed (#2583)

---
 app/views/about/_links.html.haml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/views/about/_links.html.haml b/app/views/about/_links.html.haml
index 492c71320b..f85a3407ea 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'
-- 
GitLab