2022-01-17 17:41:33 +09:00
|
|
|
.report-notes__item
|
|
|
|
= image_tag report_note.account.avatar.url, class: 'report-notes__item__avatar'
|
|
|
|
|
|
|
|
.report-notes__item__header
|
|
|
|
%span.username
|
2022-02-15 05:27:53 +09:00
|
|
|
= link_to report_note.account.username, admin_account_path(report_note.account_id)
|
2023-01-05 21:35:28 +09:00
|
|
|
%time.relative-formatted{ datetime: report_note.created_at.iso8601 }
|
|
|
|
= l report_note.created_at.to_date
|
2022-01-17 17:41:33 +09:00
|
|
|
|
|
|
|
.report-notes__item__content
|
2023-01-19 00:32:23 +09:00
|
|
|
= linkify(report_note.content)
|
2022-01-17 17:41:33 +09:00
|
|
|
|
|
|
|
- if can?(:destroy, report_note)
|
|
|
|
.report-notes__item__actions
|
2022-04-30 03:25:31 +09: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
|