From 9b9e96eae50c68dc40b5fe04a0d29deafe91b58a Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 7 Jun 2018 22:40:55 +0200 Subject: Add "Edit profile" link to public profile page, increase bottom padding (#7754) --- app/views/accounts/_follow_button.html.haml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/views') diff --git a/app/views/accounts/_follow_button.html.haml b/app/views/accounts/_follow_button.html.haml index 96ae23234..558ced010 100644 --- a/app/views/accounts/_follow_button.html.haml +++ b/app/views/accounts/_follow_button.html.haml @@ -15,6 +15,11 @@ = link_to (account.local? ? account_follow_path(account) : authorize_follow_path(acct: account.acct)), data: { method: :post }, class: 'icon-button' do = fa_icon 'user-plus' = t('accounts.follow') + - elsif user_signed_in? && current_account.id == account.id + .controls + = link_to settings_profile_url, class: 'icon-button' do + = fa_icon 'pencil' + = t('settings.edit_profile') - elsif !user_signed_in? .controls .remote-follow -- cgit