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.

22 lines
969 B

  1. - include_threads ||= false
  2. - is_predecessor ||= false
  3. - is_successor ||= false
  4. - centered ||= include_threads && !is_predecessor && !is_successor
  5. - if status.reply? && include_threads
  6. = render partial: 'stream_entries/status', collection: @ancestors, as: :status, locals: { is_predecessor: true }
  7. .entry{ class: entry_classes(status, is_predecessor, is_successor, include_threads) }
  8. - if status.reblog?
  9. .pre-header
  10. %div.pre-header__icon
  11. = fa_icon('retweet fw')
  12. %span
  13. = link_to TagManager.instance.url_for(status.account), class: 'status__display-name muted' do
  14. %strong= display_name(status.account)
  15. = t('stream_entries.reblogged')
  16. = render partial: centered ? 'stream_entries/detailed_status' : 'stream_entries/simple_status', locals: { status: status.proper }
  17. - if include_threads
  18. = render partial: 'stream_entries/status', collection: @descendants, as: :status, locals: { is_successor: true }