The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
726 B

  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. %div.muted-hint.center-text
  13. = t 'admin.announcements.empty'
  14. - else
  15. .announcements-list
  16. = render partial: 'announcement', collection: @announcements
  17. = paginate @announcements