mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-24 21:45:06 +01:00
Change account link to admin account link on report page (#4119)
This commit is contained in:
parent
91cacb1e8f
commit
794781d121
@ -4,11 +4,11 @@
|
||||
.report-accounts
|
||||
.report-accounts__item
|
||||
%strong= t('admin.reports.reported_account')
|
||||
= render 'authorize_follows/card', account: @report.target_account
|
||||
= render 'authorize_follows/card', account: @report.target_account, admin: true
|
||||
= render 'admin/accounts/card', account: @report.target_account
|
||||
.report-accounts__item
|
||||
%strong= t('admin.reports.reported_by')
|
||||
= render 'authorize_follows/card', account: @report.account
|
||||
= render 'authorize_follows/card', account: @report.account, admin: true
|
||||
= render 'admin/accounts/card', account: @report.account
|
||||
|
||||
%p
|
||||
|
@ -4,7 +4,8 @@
|
||||
= image_tag account.avatar.url(:original), alt: '', width: 48, height: 48, class: 'avatar'
|
||||
|
||||
%span.display-name
|
||||
= link_to TagManager.instance.url_for(account), class: 'detailed-status__display-name p-author h-card', target: '_blank', rel: 'noopener' do
|
||||
- account_url = local_assigns[:admin] ? admin_account_path(account.id) : TagManager.instance.url_for(account)
|
||||
= link_to account_url, class: 'detailed-status__display-name p-author h-card', target: '_blank', rel: 'noopener' do
|
||||
%strong.emojify= display_name(account)
|
||||
%span @#{account.acct}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user