2020-03-13 01:57:59 +09:00
|
|
|
.announcements-list__item
|
|
|
|
= link_to edit_admin_warning_preset_path(warning_preset), class: 'announcements-list__item__title' do
|
|
|
|
= warning_preset.title.presence || truncate(warning_preset.text)
|
|
|
|
|
|
|
|
.announcements-list__item__action-bar
|
|
|
|
.announcements-list__item__meta
|
|
|
|
= truncate(warning_preset.text)
|
|
|
|
|
|
|
|
%div
|
2024-08-20 20:48:15 +09:00
|
|
|
= table_link_to 'delete', 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)
|