Browse Source

Fixes problem with showing non-local accounts. (#2371)

closed-social-glitch-2
Ash Furrow 7 years ago
committed by Eugen
parent
commit
ef5937da1f
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/views/admin/accounts/show.html.haml

+ 3
- 2
app/views/admin/accounts/show.html.haml View File

@ -77,8 +77,9 @@
- else
= link_to t('admin.accounts.silence'), admin_account_silence_path(@account.id), method: :post, class: 'button'
- unless @account.user.confirmed?
= link_to t('admin.accounts.confirm'), admin_account_confirmation_path(@account.id), method: :post, class: 'button'
- if @account.local?
- unless @account.user.confirmed?
= link_to t('admin.accounts.confirm'), admin_account_confirmation_path(@account.id), method: :post, class: 'button'
- if @account.suspended?
= link_to t('admin.accounts.undo_suspension'), admin_account_suspension_path(@account.id), method: :delete, class: 'button'

Loading…
Cancel
Save