闭社主体 forked from https://github.com/tootsuite/mastodon
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.

47 lines
2.2 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 partial: 'authorize_follows/card', locals: { account: @report.target_account }
  7. = render partial: 'admin/accounts/card', locals: { account: @report.target_account }
  8. .report-accounts__item
  9. %strong= t('admin.reports.reported_by')
  10. = render partial: 'authorize_follows/card', locals: { account: @report.account }
  11. = render partial: 'admin/accounts/card', locals: { 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 partial: 'stream_entries/simple_status', locals: { 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. - if !@report.action_taken?
  29. %hr/
  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. %hr/
  38. %p
  39. %strong Action taken by:
  40. = @report.action_taken_by_account.acct