Group reports by target account (#8674)
* Group reports by target account * Improve CSSth-downstream
parent
c2c352f511
commit
50978383f9
@ -1,19 +0,0 @@
|
|||||||
- size ||= 36
|
|
||||||
|
|
||||||
.account.compact
|
|
||||||
.account__wrapper
|
|
||||||
- if account.nil?
|
|
||||||
.account__display-name
|
|
||||||
.account__avatar-wrapper
|
|
||||||
.account__avatar{ style: "background-image: url(#{full_asset_url('avatars/original/missing.png', skip_pipeline: true)}); width: #{size}px; height: #{size}px; background-size: #{size}px #{size}px" }
|
|
||||||
%span.display-name
|
|
||||||
%strong= t 'about.contact_missing'
|
|
||||||
%span.display-name__account= t 'about.contact_unavailable'
|
|
||||||
- else
|
|
||||||
= link_to TagManager.instance.url_for(account), class: 'account__display-name' do
|
|
||||||
.account__avatar-wrapper
|
|
||||||
.account__avatar{ style: "background-image: url(#{account.avatar.url}); width: #{size}px; height: #{size}px; background-size: #{size}px #{size}px" }
|
|
||||||
%span.display-name
|
|
||||||
%bdi
|
|
||||||
%strong.display-name__html.emojify= display_name(account, custom_emojify: true)
|
|
||||||
%span.display-name__account @#{account.acct}
|
|
@ -1,29 +0,0 @@
|
|||||||
%tr
|
|
||||||
%td.id
|
|
||||||
= "##{report.id}"
|
|
||||||
%td.target
|
|
||||||
= admin_account_link_to report.target_account
|
|
||||||
%td.reporter
|
|
||||||
- if report.account.local?
|
|
||||||
= admin_account_link_to report.account
|
|
||||||
- else
|
|
||||||
= report.account.domain
|
|
||||||
%td
|
|
||||||
%div{ title: report.comment }
|
|
||||||
= truncate(report.comment, length: 30, separator: ' ')
|
|
||||||
%div
|
|
||||||
- unless report.statuses.empty?
|
|
||||||
%span{ title: t('admin.accounts.statuses') }
|
|
||||||
= fa_icon('comment')
|
|
||||||
= report.statuses.count
|
|
||||||
- unless report.media_attachments.empty?
|
|
||||||
%span{ title: t('admin.accounts.media_attachments') }
|
|
||||||
= fa_icon('camera')
|
|
||||||
= report.media_attachments.count
|
|
||||||
%td
|
|
||||||
- if report.assigned_account.nil?
|
|
||||||
\-
|
|
||||||
- else
|
|
||||||
= admin_account_link_to report.assigned_account
|
|
||||||
%td
|
|
||||||
= table_link_to 'circle', t('admin.reports.view'), admin_report_path(report)
|
|
Loading…
Reference in new issue