This commit is contained in:
Emelia Smith 2024-08-22 21:25:36 +02:00
parent 3f330d95b1
commit 79b553503e
No known key found for this signature in database

View File

@ -52,12 +52,8 @@
- reports.each do |report|
.report-card__summary__item
.report-card__summary__item__reported-by
= link_to t('admin.reports.report', id: report.id), admin_report_path(report), class: 'report-card__summary__item__report-id'
%br
.report-card__summary__item__content
= link_to admin_report_path(report) do
.one-line= report.comment.presence || t('admin.reports.comment.none')
= link_to admin_report_path(report), class: 'report-card__summary__item__report-id' do
.one-line= t('admin.reports.report', id: report.id)
%span.report-card__summary__item__content__icon{ title: t('admin.accounts.statuses') }
= material_symbol('comment')
@ -67,6 +63,11 @@
= 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: }
- if report.account.instance_actor?
= material_symbol('cloud')
@ -86,8 +87,10 @@
%span.report-card__summary__item__content__icon{ title: t('admin.reports.notes.title') }
= material_symbol('comment')
= report.notes.count
= t('admin.reports.notes.title')
%br
- if report.assigned_account.present?
= admin_account_link_to report.assigned_account
- else
\-
unassigned
= paginate @reports