_status.html.haml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. .batch-table__row
  2. %label.batch-table__row__select.batch-checkbox
  3. = f.check_box :status_ids, { multiple: true, include_hidden: false }, status.id
  4. .batch-table__row__content
  5. .status__content><
  6. - if status.proper.spoiler_text.blank?
  7. = prerender_custom_emojis(status_content_format(status.proper), status.proper.emojis)
  8. - else
  9. %details<
  10. %summary><
  11. %strong> Content warning: #{prerender_custom_emojis(h(status.proper.spoiler_text), status.proper.emojis)}
  12. = prerender_custom_emojis(status_content_format(status.proper), status.proper.emojis)
  13. - unless status.proper.ordered_media_attachments.empty?
  14. = render partial: 'admin/reports/media_attachments', locals: { status: status.proper }
  15. .detailed-status__meta
  16. - if status.application
  17. = status.application.name
  18. ·
  19. = link_to ActivityPub::TagManager.instance.url_for(status), class: 'detailed-status__datetime', target: stream_link_target, rel: 'noopener noreferrer' do
  20. %time.formatted{ datetime: status.created_at.iso8601, title: l(status.created_at) }= l(status.created_at)
  21. - if status.edited?
  22. ·
  23. = link_to t('statuses.edited_at_html', date: content_tag(:time, l(status.edited_at), datetime: status.edited_at.iso8601, title: l(status.edited_at), class: 'formatted')), admin_account_status_path(status.account_id, status), class: 'detailed-status__datetime'
  24. - if status.discarded?
  25. ·
  26. %span.negative-hint= t('admin.statuses.deleted')
  27. ·
  28. - if status.reblog?
  29. = fa_icon('retweet fw')
  30. = t('statuses.boosted_from_html', acct_link: admin_account_inline_link_to(status.proper.account))
  31. - else
  32. = fa_visibility_icon(status)
  33. = t("statuses.visibilities.#{status.visibility}")
  34. - if status.proper.sensitive?
  35. ·
  36. = fa_icon('eye-slash fw')
  37. = t('stream_entries.sensitive_content')