2
0

Add ability to reorder server rules from admin interface (#34737)

This commit is contained in:
Claire
2025-05-20 14:49:11 +02:00
committed by GitHub
parent 8ed0408adb
commit d7cb6068b1
12 changed files with 97 additions and 2 deletions

View File

@@ -7,5 +7,7 @@
.announcements-list__item__meta
= rule.hint
%div
.rule-actions
= table_link_to 'arrow_upward', t('admin.rules.move_up'), move_up_admin_rule_path(rule), method: :post if can?(:update, rule) && !rule_iteration.first?
= table_link_to 'delete', t('admin.rules.delete'), admin_rule_path(rule), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:destroy, rule)
= table_link_to 'arrow_downward', t('admin.rules.move_down'), move_down_admin_rule_path(rule), method: :post if can?(:update, rule) && !rule_iteration.last?