- reporter = abuse_report.reporter
- user = abuse_report.user
%tr
  %td
    - if reporter
      = link_to reporter.name, reporter
    - else
      (removed)
  %td
    = abuse_report.created_at.to_s(:short)
  %td
    = abuse_report.message
  %td
    - if user
      = link_to user.name, user
    - else
      (removed)
  %td
    - if user
      = link_to 'Remove user & report', admin_abuse_report_path(abuse_report, remove_user: true),
        data: { confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?" }, remote: true, method: :delete, class: "btn btn-xs btn-remove js-remove-tr"

  %td
    - if user
      = link_to 'Block user', block_admin_user_path(user), data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'}, method: :put, class: "btn btn-xs"
    = link_to 'Remove report', [:admin, abuse_report], remote: true, method: :delete, class: "btn btn-xs btn-close js-remove-tr"
