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.

27 lines
754 B

  1. - content_for :page_title do
  2. Reports
  3. .filters
  4. .filter-subset
  5. %strong Status
  6. %ul
  7. %li= filter_link_to 'Unresolved', action_taken: nil
  8. %li= filter_link_to 'Resolved', action_taken: '1'
  9. %table.table
  10. %thead
  11. %tr
  12. %th ID
  13. %th Target
  14. %th Reported by
  15. %th Comment
  16. %th
  17. %tbody
  18. - @reports.each do |report|
  19. %tr
  20. %td= "##{report.id}"
  21. %td= link_to report.target_account.acct, admin_account_path(report.target_account.id)
  22. %td= link_to report.account.acct, admin_account_path(report.account.id)
  23. %td= truncate(report.comment, length: 30, separator: ' ')
  24. %td= table_link_to 'circle', 'View', admin_report_path(report)
  25. = will_paginate @reports, pagination_options