Browse Source

Add "Edit profile" link to public profile page, increase bottom padding (#7754)

pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
9b9e96eae5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      app/javascript/styles/mastodon/footer.scss
  2. +5
    -0
      app/views/accounts/_follow_button.html.haml

+ 1
- 0
app/javascript/styles/mastodon/footer.scss View File

@ -1,6 +1,7 @@
.footer {
text-align: center;
margin-top: 30px;
padding-bottom: 60px;
font-size: 12px;
color: $darker-text-color;

+ 5
- 0
app/views/accounts/_follow_button.html.haml View File

@ -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

Loading…
Cancel
Save