闭社主体 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.

44 lines
1.8 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. = link_to admin_report_reported_status_path(@report, status), method: :delete, class: 'icon-button', style: 'font-size: 24px; width: 24px; height: 24px', title: t('admin.reports.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 t('admin.reports.silence_account'), admin_report_path(@report, outcome: 'silence'), method: :put, class: 'button'
  30. = link_to t('admin.reports.suspend_account'), admin_report_path(@report, outcome: 'suspend'), method: :put, class: 'button'
  31. %div{ style: 'float: left' }
  32. = link_to t('admin.reports.mark_as_resolved'), admin_report_path(@report, outcome: 'resolve'), method: :put, 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