2021-02-22 05:50:12 +11:00
|
|
|
.announcements-list__item
|
|
|
|
= link_to edit_admin_rule_path(rule), class: 'announcements-list__item__title' do
|
2023-10-25 23:01:00 +11:00
|
|
|
#{rule_counter + 1}.
|
2021-02-22 05:50:12 +11:00
|
|
|
= truncate(rule.text)
|
|
|
|
|
|
|
|
.announcements-list__item__action-bar
|
|
|
|
.announcements-list__item__meta
|
2024-03-27 01:46:05 +11:00
|
|
|
= rule.hint
|
2021-02-22 05:50:12 +11:00
|
|
|
|
|
|
|
%div
|
2024-08-20 21:48:15 +10:00
|
|
|
= 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)
|