_comment.html.haml 1.3 KB

123456789101112131415161718192021222324
  1. - if report.account.instance_actor?
  2. %p= t('admin.reports.comment_description_html', name: content_tag(:strong, site_hostname, class: 'username'))
  3. - elsif report.account.local?
  4. %p= t('admin.reports.comment_description_html', name: content_tag(:strong, report.account.username, class: 'username'))
  5. - else
  6. %p= t('admin.reports.comment_description_html', name: t('admin.reports.remote_user_placeholder', instance: report.account.domain))
  7. .report-notes
  8. .report-notes__item
  9. - if report.account.local? && !report.account.instance_actor?
  10. = image_tag report.account.avatar.url, class: 'report-notes__item__avatar'
  11. - else
  12. = image_tag(full_asset_url('avatars/original/missing.png', skip_pipeline: true), class: 'report-notes__item__avatar')
  13. .report-notes__item__header
  14. %span.username
  15. - if report.account.instance_actor?
  16. = site_hostname
  17. - elsif report.account.local?
  18. = link_to report.account.username, admin_account_path(report.account_id)
  19. - else
  20. = link_to report.account.domain, admin_instance_path(report.account.domain)
  21. %time.relative-formatted{ datetime: report.created_at.iso8601 }
  22. = l report.created_at.to_date
  23. .report-notes__item__content
  24. = simple_format(h(report.comment))