2022-01-17 08:41:33 +00:00
|
|
|
.report-notes__item
|
|
|
|
= image_tag report_note.account.avatar.url, class: 'report-notes__item__avatar'
|
|
|
|
|
|
|
|
.report-notes__item__header
|
|
|
|
%span.username
|
2022-02-14 20:27:53 +00:00
|
|
|
= link_to report_note.account.username, admin_account_path(report_note.account_id)
|
2023-01-05 12:35:28 +00:00
|
|
|
%time.relative-formatted{ datetime: report_note.created_at.iso8601 }
|
|
|
|
= l report_note.created_at.to_date
|
2022-01-17 08:41:33 +00:00
|
|
|
|
|
|
|
.report-notes__item__content
|
2023-01-18 15:32:23 +00:00
|
|
|
= linkify(report_note.content)
|
2022-01-17 08:41:33 +00:00
|
|
|
|
|
|
|
- if can?(:destroy, report_note)
|
|
|
|
.report-notes__item__actions
|
2022-04-29 18:25:31 +00:00
|
|
|
- if report_note.is_a?(AccountModerationNote)
|
|
|
|
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_account_moderation_note_path(report_note), method: :delete
|
|
|
|
- else
|
|
|
|
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_report_note_path(report_note), method: :delete
|