]> cat aescling's git repositories - mastodon.git/commitdiff
Back to Web UI from tag page when signed in (#5943)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Sat, 9 Dec 2017 13:19:07 +0000 (22:19 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 9 Dec 2017 13:19:07 +0000 (14:19 +0100)
app/views/tags/show.html.haml

index ea8b0faa3333df952e242938239e04b13529cec1..e4c16555da99096b1f40cd20c735d9120ddc465f 100644 (file)
           %p= t 'about.about_hashtag_html', hashtag: @tag.name
 
           .cta
-            = link_to t('auth.login'), new_user_session_path, class: 'button button-secondary'
-            = link_to t('about.learn_more'), root_url, class: 'button button-alternative'
+            - if user_signed_in?
+              = link_to t('settings.back'), root_path, class: 'button button-secondary'
+            - else
+              = link_to t('auth.login'), new_user_session_path, class: 'button button-secondary'
+            = link_to t('about.learn_more'), about_path, class: 'button button-alternative'
 
         .features-list
           .features-list__row