index.html.haml 721 B

123456789101112131415161718192021
  1. - content_for :page_title do
  2. = t('admin.announcements.title')
  3. - content_for :heading_actions do
  4. = link_to t('admin.announcements.new.title'), new_admin_announcement_path, class: 'button'
  5. .filters
  6. .filter-subset
  7. %strong= t('admin.relays.status')
  8. %ul
  9. %li= filter_link_to t('generic.all'), published: nil, unpublished: nil
  10. %li= filter_link_to safe_join([t('admin.announcements.live'), "(#{number_with_delimiter(Announcement.published.count)})"], ' '), published: '1', unpublished: nil
  11. - if @announcements.empty?
  12. .muted-hint.center-text
  13. = t 'admin.announcements.empty'
  14. - else
  15. .announcements-list
  16. = render partial: 'announcement', collection: @announcements
  17. = paginate @announcements