~cytrogen/masto-fe

ref: 685270f3f7ea6d4a8a48ec641e8fdfd9fc2e2d7f masto-fe/app/views/admin/warning_presets/_warning_preset.html.haml -rw-r--r-- 536 bytes
685270f3 — Claire [Glitch] Fix clicking “Explore” or “Live feeds” column headers to scroll in advanced mode 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
.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
      = 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)