From cc1eccc8bc6b6f49cef0f4cf6a74ced8f3262b54 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 15 Jan 2017 14:38:59 +0100 Subject: [PATCH] Fix #466 - when logged in, make "get started" link to the frontpage instead of sign up --- app/assets/stylesheets/about.scss | 1 + app/views/about/more.html.haml | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/about.scss b/app/assets/stylesheets/about.scss index 674d1eb28..13c67d496 100644 --- a/app/assets/stylesheets/about.scss +++ b/app/assets/stylesheets/about.scss @@ -245,6 +245,7 @@ margin: 0; font-family: inherit; font-size: 13px; + line-height: 18px; a { display: block; diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml index 8b0925f00..28300900c 100644 --- a/app/views/about/more.html.haml +++ b/app/views/about/more.html.haml @@ -45,7 +45,10 @@ .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'