_rule.html.haml 438 B

1234567891011
  1. .announcements-list__item
  2. = link_to edit_admin_rule_path(rule), class: 'announcements-list__item__title' do
  3. #{rule_counter + 1}.
  4. = truncate(rule.text)
  5. .announcements-list__item__action-bar
  6. .announcements-list__item__meta
  7. = rule.text
  8. %div
  9. = table_link_to 'trash', t('admin.rules.delete'), admin_rule_path(rule), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:destroy, rule)