logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 1955a3f4448e1a13898c10a89e681395d6748ec3
parent: 8ebed7fc68bed3e3a1327294588ec234ff5b2482
Author: Eugen <eugen@zeonfederated.com>
Date:   Sun, 16 Apr 2017 23:15:58 +0200

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


Diffstat:

Mapp/views/admin/accounts/show.html.haml5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml @@ -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?