Fix recently-broken admin interface buttons (#32240)

This commit is contained in:
Claire 2024-10-03 18:12:15 +02:00 committed by GitHub
parent cc8d723e71
commit 4c0e44ebbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 27 additions and 31 deletions

View file

@ -2,7 +2,7 @@
.report-actions
.report-actions__item
.report-actions__item__button
= button_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(report), class: :button
= link_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(report), method: :post, class: 'button'
.report-actions__item__description
= t('admin.reports.actions.resolve_description_html')
- if statuses.any? { |status| (status.with_media? || status.with_preview_card?) && !status.discarded? }

View file

@ -3,9 +3,9 @@
- content_for :heading_actions do
- if @report.unresolved?
= button_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(@report), class: :button
= link_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(@report), method: :post, class: 'button'
- else
= button_to t('admin.reports.mark_as_unresolved'), reopen_admin_report_path(@report), class: :button
= link_to t('admin.reports.mark_as_unresolved'), reopen_admin_report_path(@report), method: :post, class: 'button'
- unless @report.account.local? || @report.target_account.local?
.flash-message= t('admin.reports.forwarded_replies_explanation')