_warning_preset.html.haml 536 B

12345678910
  1. .announcements-list__item
  2. = link_to edit_admin_warning_preset_path(warning_preset), class: 'announcements-list__item__title' do
  3. = warning_preset.title.presence || truncate(warning_preset.text)
  4. .announcements-list__item__action-bar
  5. .announcements-list__item__meta
  6. = truncate(warning_preset.text)
  7. %div
  8. = table_link_to 'trash', t('admin.warning_presets.delete'), admin_warning_preset_path(warning_preset), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:destroy, warning_preset)