_actions.html.haml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. = form_tag preview_admin_report_actions_path(report), method: :post do
  2. .report-actions
  3. .report-actions__item
  4. .report-actions__item__button
  5. = link_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(report), method: :post, class: 'button'
  6. .report-actions__item__description
  7. = t('admin.reports.actions.resolve_description_html')
  8. - if statuses.any? { |status| (status.with_media? || status.with_preview_card?) && !status.discarded? }
  9. .report-actions__item
  10. .report-actions__item__button
  11. = button_tag t('admin.reports.mark_as_sensitive'), name: :mark_as_sensitive, class: 'button'
  12. .report-actions__item__description
  13. = t('admin.reports.actions.mark_as_sensitive_description_html')
  14. .report-actions__item
  15. .report-actions__item__button
  16. = button_tag t('admin.reports.delete_and_resolve'), name: :delete, class: 'button button--destructive'
  17. .report-actions__item__description
  18. = t('admin.reports.actions.delete_description_html')
  19. .report-actions__item
  20. .report-actions__item__button
  21. = button_tag t('admin.accounts.silence'), name: :silence, class: 'button button--destructive'
  22. .report-actions__item__description
  23. = t('admin.reports.actions.silence_description_html')
  24. .report-actions__item
  25. .report-actions__item__button
  26. = button_tag t('admin.accounts.suspend'), name: :suspend, class: 'button button--destructive'
  27. .report-actions__item__description
  28. = t('admin.reports.actions.suspend_description_html')
  29. .report-actions__item
  30. .report-actions__item__button
  31. = link_to t('admin.accounts.custom'), new_admin_account_action_path(report.target_account_id, report_id: report.id), class: 'button'
  32. .report-actions__item__description
  33. = t('admin.reports.actions.other_description_html')