More link/button conversion across views (#32199)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
.report-actions
|
||||
.report-actions__item
|
||||
.report-actions__item__button
|
||||
= link_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(report), method: :post, class: 'button'
|
||||
= button_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(report), 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? }
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
- content_for :heading_actions do
|
||||
- if @report.unresolved?
|
||||
= link_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(@report), method: :post, class: 'button'
|
||||
= button_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(@report), class: :button
|
||||
- else
|
||||
= link_to t('admin.reports.mark_as_unresolved'), reopen_admin_report_path(@report), method: :post, class: 'button'
|
||||
= button_to t('admin.reports.mark_as_unresolved'), reopen_admin_report_path(@report), class: :button
|
||||
|
||||
- unless @report.account.local? || @report.target_account.local?
|
||||
.flash-message= t('admin.reports.forwarded_replies_explanation')
|
||||
|
||||
Reference in New Issue
Block a user