2
0

More link/button conversion across views (#32199)

This commit is contained in:
Matt Jankowski
2024-10-02 09:08:40 -04:00
committed by GitHub
parent 1f65a95421
commit cf859d151b
9 changed files with 17 additions and 17 deletions

View File

@@ -3,8 +3,8 @@
- content_for :heading_actions do
- if @appeal.persisted?
= link_to t('disputes.strikes.approve_appeal'), approve_admin_disputes_appeal_path(@appeal), method: :post, class: 'button' if can?(:approve, @appeal)
= link_to t('disputes.strikes.reject_appeal'), reject_admin_disputes_appeal_path(@appeal), method: :post, class: 'button button--destructive' if can?(:reject, @appeal)
= button_to t('disputes.strikes.approve_appeal'), approve_admin_disputes_appeal_path(@appeal), class: :button if can?(:approve, @appeal)
= button_to t('disputes.strikes.reject_appeal'), reject_admin_disputes_appeal_path(@appeal), class: 'button button--destructive' if can?(:reject, @appeal)
- if @strike.overruled?
%p.hint