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.
 
 
 
 

31 lines
952 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. .table-wrapper
  16. %table.table
  17. %thead
  18. %tr
  19. %th= t('simple_form.labels.announcement.text')
  20. %th= t('admin.announcements.time_range')
  21. %th= t('admin.announcements.published')
  22. %th
  23. %tbody
  24. = render partial: 'announcement', collection: @announcements
  25. = paginate @announcements