Do not display "reset password" in admin UI for remote accounts (#1960)

pull/1965/head v1.2
Eugen 2017-04-16 23:15:58 +02:00 committed by GitHub
parent 8ebed7fc68
commit 1955a3f444
1 changed files with 3 additions and 2 deletions

View File

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