_report.html.haml 754 B

123456789101112131415161718192021
  1. %tr
  2. %td.id
  3. = "##{report.id}"
  4. %td.target
  5. = link_to report.target_account.acct, admin_account_path(report.target_account.id)
  6. %td.reporter
  7. = link_to report.account.acct, admin_account_path(report.account.id)
  8. %td.comment
  9. %span{ title: report.comment }
  10. = truncate(report.comment, length: 30, separator: ' ')
  11. %td.stats
  12. - unless report.statuses.empty?
  13. %span{ title: t('admin.accounts.statuses') }
  14. = fa_icon('comment')
  15. = report.statuses.count
  16. - unless report.media_attachments.empty?
  17. %span{ title: t('admin.accounts.media_attachments') }
  18. = fa_icon('camera')
  19. = report.media_attachments.count
  20. %td
  21. = table_link_to 'circle', t('admin.reports.view'), admin_report_path(report)