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.

44 lines
1.5 KiB

  1. - content_for :page_title do
  2. = "Report ##{@report.id}"
  3. .report-accounts
  4. .report-accounts__item
  5. %strong Reported account:
  6. = render partial: 'authorize_follow/card', locals: { account: @report.target_account }
  7. .report-accounts__item
  8. %strong Reported by:
  9. = render partial: 'authorize_follow/card', locals: { account: @report.account }
  10. %p
  11. %strong Comment:
  12. - if @report.comment.blank?
  13. None
  14. - else
  15. = @report.comment
  16. - unless @statuses.empty?
  17. %hr/
  18. - @statuses.each do |status|
  19. .report-status
  20. .activity-stream.activity-stream-headless
  21. .entry= render partial: 'stream_entries/simple_status', locals: { status: status }
  22. .report-status__actions
  23. = link_to remove_admin_report_path(@report, status_id: status.id), method: :post, class: 'icon-button', style: 'font-size: 24px; width: 24px; height: 24px', title: 'Delete' do
  24. = fa_icon 'trash'
  25. - if !@report.action_taken?
  26. %hr/
  27. %div{ style: 'overflow: hidden' }
  28. %div{ style: 'float: right' }
  29. = link_to 'Silence account', silence_admin_report_path(@report), method: :post, class: 'button'
  30. = link_to 'Suspend account', suspend_admin_report_path(@report), method: :post, class: 'button'
  31. %div{ style: 'float: left' }
  32. = link_to 'Mark as resolved', resolve_admin_report_path(@report), method: :post, class: 'button'
  33. - elsif !@report.action_taken_by_account.nil?
  34. %hr/
  35. %p
  36. %strong Action taken by:
  37. = @report.action_taken_by_account.acct