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

59 lines
3.0 KiB

  1. - content_for :header_tags do
  2. = javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
  3. - content_for :page_title do
  4. = t('admin.reports.report', id: @report.id)
  5. .report-accounts
  6. .report-accounts__item
  7. %strong= t('admin.reports.reported_account')
  8. = render 'authorize_follows/card', account: @report.target_account, admin: true
  9. = render 'admin/accounts/card', account: @report.target_account
  10. .report-accounts__item
  11. %strong= t('admin.reports.reported_by')
  12. = render 'authorize_follows/card', account: @report.account, admin: true
  13. = render 'admin/accounts/card', account: @report.account
  14. %p
  15. %strong= t('admin.reports.comment.label')
  16. \:
  17. = simple_format(@report.comment.presence || t('admin.reports.comment.none'))
  18. - unless @report.statuses.empty?
  19. %hr/
  20. = form_for(@form, url: admin_report_reported_statuses_path(@report.id)) do |f|
  21. .batch-form-box
  22. .batch-checkbox-all
  23. = check_box_tag :batch_checkbox_all, nil, false
  24. = f.select :action, Form::StatusBatch::ACTION_TYPE.map{|action| [t("admin.statuses.batch.#{action}"), action]}
  25. = f.submit t('admin.statuses.execute'), data: { confirm: t('admin.reports.are_you_sure') }, class: 'button'
  26. .media-spoiler-toggle-buttons
  27. .media-spoiler-show-button.button= t('admin.statuses.media.show')
  28. .media-spoiler-hide-button.button= t('admin.statuses.media.hide')
  29. - @report.statuses.each do |status|
  30. .report-status{ data: { id: status.id } }
  31. .batch-checkbox
  32. = f.check_box :status_ids, { multiple: true, include_hidden: false }, status.id
  33. .activity-stream.activity-stream-headless
  34. .entry= render 'stream_entries/simple_status', status: status
  35. .report-status__actions
  36. - unless status.media_attachments.empty?
  37. = link_to admin_report_reported_status_path(@report, status, status: { sensitive: !status.sensitive }), method: :put, class: 'icon-button nsfw-button', title: t("admin.reports.nsfw.#{!status.sensitive}") do
  38. = fa_icon status.sensitive? ? 'eye' : 'eye-slash'
  39. = 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') }, remote: true do
  40. = fa_icon 'trash'
  41. %hr/
  42. - if !@report.action_taken?
  43. %div{ style: 'overflow: hidden' }
  44. %div{ style: 'float: right' }
  45. = link_to t('admin.reports.silence_account'), admin_report_path(@report, outcome: 'silence'), method: :put, class: 'button'
  46. = link_to t('admin.reports.suspend_account'), admin_report_path(@report, outcome: 'suspend'), method: :put, class: 'button'
  47. %div{ style: 'float: left' }
  48. = link_to t('admin.reports.mark_as_resolved'), admin_report_path(@report, outcome: 'resolve'), method: :put, class: 'button'
  49. - elsif !@report.action_taken_by_account.nil?
  50. %p
  51. %strong #{t('admin.reports.action_taken_by')}:
  52. = @report.action_taken_by_account.acct