Skip to content

Commit

Permalink
Do not display "reset password" in admin UI for remote accounts (#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Apr 16, 2017
1 parent 8ebed7f commit 1955a3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/admin/accounts/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@
= surround '(', ')' do
= number_to_human_size @account.media_attachments.sum('file_file_size')

%div{ style: 'float: right' }
= link_to t('admin.accounts.reset_password'), admin_account_reset_path(@account.id), method: :create, class: 'button'
- if @account.local?
%div{ style: 'float: right' }
= link_to t('admin.accounts.reset_password'), admin_account_reset_path(@account.id), method: :create, class: 'button'

%div{ style: 'float: left' }
- if @account.silenced?
Expand Down

0 comments on commit 1955a3f

Please sign in to comment.