]> cat aescling's git repositories - mastodon.git/commitdiff
Hide get started link when register closed (#2583)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Fri, 28 Apr 2017 13:45:37 +0000 (22:45 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 28 Apr 2017 13:45:37 +0000 (15:45 +0200)
app/views/about/_links.html.haml

index 492c71320b171a2cfc1664598abb4f2c381c49da..f85a3407ea9b3766e72ba0b5c1e8fd219b3056af 100644 (file)
@@ -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'