1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-22 18:48:43 +09:00
YuruToot/app/views/admin/rules/_rule.html.haml

12 lines
439 B
Plaintext
Raw Normal View History

2021-02-22 03:50:12 +09:00
.announcements-list__item
= link_to edit_admin_rule_path(rule), class: 'announcements-list__item__title' do
#{rule_counter + 1}.
2021-02-22 03:50:12 +09:00
= truncate(rule.text)
.announcements-list__item__action-bar
.announcements-list__item__meta
= rule.hint
2021-02-22 03:50:12 +09:00
%div
= 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)