Fix recently-broken admin interface buttons (#32240)
This commit is contained in:
parent
cc8d723e71
commit
4c0e44ebbe
11 changed files with 27 additions and 31 deletions
|
@ -3,8 +3,8 @@
|
|||
|
||||
- content_for :heading_actions do
|
||||
- if @appeal.persisted?
|
||||
= 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)
|
||||
= 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)
|
||||
|
||||
- if @strike.overruled?
|
||||
%p.hint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue