_status.html.haml 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. .batch-table__row{ class: [status.requires_review? && 'batch-table__row--attention', !status.requires_review? && !status.trendable? && 'batch-table__row--muted'] }
  2. %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
  3. = f.check_box :status_ids, { multiple: true, include_hidden: false }, status.id
  4. .batch-table__row__content.pending-account__header
  5. .one-liner
  6. = admin_account_link_to status.account
  7. = link_to ActivityPub::TagManager.instance.url_for(status), target: '_blank', class: 'emojify', rel: 'noopener noreferrer' do
  8. = one_line_preview(status)
  9. - status.ordered_media_attachments.each do |media_attachment|
  10. %abbr{ title: media_attachment.description }
  11. = fa_icon 'link'
  12. = media_attachment.file_file_name
  13. = t('admin.trends.statuses.shared_by', count: status.reblogs_count + status.favourites_count, friendly_count: friendly_number_to_human(status.reblogs_count + status.favourites_count))
  14. - if status.account.domain.present?
  15. ·
  16. = status.account.domain
  17. - if status.language.present?
  18. ·
  19. = standard_locale_name(status.language)
  20. - if status.trendable? && !status.account.discoverable?
  21. ·
  22. = t('admin.trends.statuses.not_discoverable')
  23. - if status.trend.allowed?
  24. ·
  25. %abbr{ title: t('admin.trends.tags.current_score', score: status.trend.score) }= t('admin.trends.tags.trending_rank', rank: status.trend.rank)
  26. - elsif status.requires_review?
  27. ·
  28. = t('admin.trends.pending_review')