mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 01:41:08 +00:00
Rely on polymorphic admin report note url for delete links in partial
This commit is contained in:
parent
5d9a9c76fb
commit
64daf885ed
|
@ -13,9 +13,7 @@
|
|||
|
||||
- if can?(:destroy, report_note)
|
||||
.report-notes__item__actions
|
||||
- if report_note.is_a?(AccountModerationNote)
|
||||
= table_link_to 'delete', t('admin.reports.notes.delete'), admin_account_moderation_note_path(report_note), method: :delete
|
||||
- elsif report_note.is_a?(InstanceModerationNote)
|
||||
- if report_note.is_a?(InstanceModerationNote)
|
||||
= table_link_to 'delete', t('admin.reports.notes.delete'), admin_instance_moderation_note_path(instance_id: report_note.domain, id: report_note.id), method: :delete
|
||||
- else
|
||||
= table_link_to 'delete', t('admin.reports.notes.delete'), admin_report_note_path(report_note), method: :delete
|
||||
= table_link_to 'delete', t('admin.reports.notes.delete'), url_for([:admin, report_note]), method: :delete
|
||||
|
|
Loading…
Reference in New Issue
Block a user