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.

45 lines
2.1 KiB

  1. - content_for :page_title do
  2. = t('admin.reports.report', id: @report.id)
  3. .report-accounts
  4. .report-accounts__item
  5. %strong= t('admin.reports.reported_account')
  6. = render 'authorize_follows/card', account: @report.target_account
  7. = render 'admin/accounts/card', account: @report.target_account
  8. .report-accounts__item
  9. %strong= t('admin.reports.reported_by')
  10. = render 'authorize_follows/card', account: @report.account
  11. = render 'admin/accounts/card', account: @report.account
  12. %p
  13. %strong= t('admin.reports.comment.label')
  14. \:
  15. = simple_format(@report.comment.presence || t('admin.reports.comment.none'))
  16. - unless @report.statuses.empty?
  17. %hr/
  18. - @report.statuses.each do |status|
  19. .report-status
  20. .activity-stream.activity-stream-headless
  21. .entry= render 'stream_entries/simple_status', status: status
  22. .report-status__actions
  23. - unless status.media_attachments.empty?
  24. = link_to admin_report_reported_status_path(@report, status, status: { sensitive: !status.sensitive }), method: :patch, class: 'icon-button nsfw-button', title: t("admin.reports.nsfw.#{!status.sensitive}") do
  25. = fa_icon status.sensitive? ? 'eye' : 'eye-slash'
  26. = link_to admin_report_reported_status_path(@report, status), method: :delete, class: 'icon-button trash-button', title: t('admin.reports.delete'), data: { confirm: t('admin.reports.are_you_sure') } do
  27. = fa_icon 'trash'
  28. %hr/
  29. - if !@report.action_taken?
  30. %div{ style: 'overflow: hidden' }
  31. %div{ style: 'float: right' }
  32. = link_to t('admin.reports.silence_account'), admin_report_path(@report, outcome: 'silence'), method: :put, class: 'button'
  33. = link_to t('admin.reports.suspend_account'), admin_report_path(@report, outcome: 'suspend'), method: :put, class: 'button'
  34. %div{ style: 'float: left' }
  35. = link_to t('admin.reports.mark_as_resolved'), admin_report_path(@report, outcome: 'resolve'), method: :put, class: 'button'
  36. - elsif !@report.action_taken_by_account.nil?
  37. %p
  38. %strong #{t('admin.reports.action_taken_by')}:
  39. = @report.action_taken_by_account.acct