|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
%button.button= t('admin.accounts.search')
|
|
|
|
|
= link_to t('admin.accounts.reset'), admin_reports_path, class: 'button negative'
|
|
|
|
|
|
|
|
|
|
%h4 Reports by reported account
|
|
|
|
|
%h4.no-border Reports grouped by reported account
|
|
|
|
|
|
|
|
|
|
- @reports.group_by(&:target_account_id).each_value do |reports|
|
|
|
|
|
- target_account = reports.first.target_account
|
|
|
|
@ -54,6 +54,20 @@
|
|
|
|
|
.report-card__summary__item__reported-by
|
|
|
|
|
= link_to admin_report_path(report), class: 'report-card__summary__item__report-id' do
|
|
|
|
|
.one-line= t('admin.reports.report', id: report.id)
|
|
|
|
|
- case report.category
|
|
|
|
|
- when 'legal'
|
|
|
|
|
Illegal
|
|
|
|
|
- when 'spam'
|
|
|
|
|
Spam
|
|
|
|
|
- when 'violation'
|
|
|
|
|
Rule Violation
|
|
|
|
|
- else
|
|
|
|
|
Other
|
|
|
|
|
|
|
|
|
|
.report-card__summary__item__content
|
|
|
|
|
= link_to admin_report_path(report) do
|
|
|
|
|
.one-line
|
|
|
|
|
= report.comment.presence || t('admin.reports.comment.none')
|
|
|
|
|
|
|
|
|
|
%span.report-card__summary__item__content__icon{ title: t('admin.accounts.statuses') }
|
|
|
|
|
= material_symbol('comment')
|
|
|
|
@ -62,27 +76,21 @@
|
|
|
|
|
%span.report-card__summary__item__content__icon{ title: t('admin.accounts.media_attachments') }
|
|
|
|
|
= material_symbol('photo_camera')
|
|
|
|
|
= report.media_attachments_count
|
|
|
|
|
|
|
|
|
|
.report-card__summary__item__content
|
|
|
|
|
= link_to admin_report_path(report) do
|
|
|
|
|
.one-line= report.comment.presence || t('admin.reports.comment.none')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%span.report-card__summary__item__content__icon{ title: }
|
|
|
|
|
%span.report-card__summary__item__content__icon
|
|
|
|
|
- if report.account.instance_actor?
|
|
|
|
|
= material_symbol('cloud')
|
|
|
|
|
= site_hostname
|
|
|
|
|
- elsif report.account.local?
|
|
|
|
|
= material_symbol('person')
|
|
|
|
|
= report.account.acct
|
|
|
|
|
.name-tag= labeled_account_avatar report.account
|
|
|
|
|
-# = material_symbol('person')
|
|
|
|
|
= report.account.acct
|
|
|
|
|
- if report.forwarded?
|
|
|
|
|
•
|
|
|
|
|
= t('admin.reports.forwarded')
|
|
|
|
|
- else
|
|
|
|
|
= material_symbol('cloud')
|
|
|
|
|
= report.account.domain
|
|
|
|
|
|
|
|
|
|
- if report.forwarded?
|
|
|
|
|
·
|
|
|
|
|
= t('admin.reports.forwarded_to', domain: target_account.domain)
|
|
|
|
|
|
|
|
|
|
.report-card__summary__item__assigned
|
|
|
|
|
%span.report-card__summary__item__content__icon{ title: t('admin.reports.notes.title') }
|
|
|
|
|
= material_symbol('comment')
|
|
|
|
@ -92,5 +100,5 @@
|
|
|
|
|
- if report.assigned_account.present?
|
|
|
|
|
= admin_account_link_to report.assigned_account
|
|
|
|
|
- else
|
|
|
|
|
unassigned
|
|
|
|
|
= t 'admin.reports.unassigned'
|
|
|
|
|
= paginate @reports
|
|
|
|
|