]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #466 - when logged in, make "get started" link to the frontpage instead of sign up
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 15 Jan 2017 13:38:59 +0000 (14:38 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 15 Jan 2017 13:47:39 +0000 (14:47 +0100)
app/assets/stylesheets/about.scss
app/views/about/more.html.haml

index 674d1eb283fbe2764a15c1679f90b40d8f3355ae..13c67d496709bf085a3ebb5505708d98332e4765 100644 (file)
           margin: 0;
           font-family: inherit;
           font-size: 13px;
+          line-height: 18px;
 
           a {
             display: block;
index 8b0925f00d576a64b76e9ee15e5d22a4627d5815..28300900c2a5586dc5208aac0c800b3508996a2e 100644 (file)
         .panel-header= t 'about.links'
         .panel-list
           %ul
-            %li= link_to t('about.get_started'), new_user_registration_path
-            %li= link_to t('auth.login'), new_user_session_path
+            - 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
+              %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'