|
@ -15,4 +15,7 @@ |
|
|
|
|
|
|
|
|
- if can?(:destroy, report_note) |
|
|
- if can?(:destroy, report_note) |
|
|
.report-notes__item__actions |
|
|
.report-notes__item__actions |
|
|
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_report_note_path(report_note), method: :delete |
|
|
|
|
|
|
|
|
- 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 |