logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

_status.html.haml (1828B)


  1. :ruby
  2. pinned ||= false
  3. include_threads ||= false
  4. is_predecessor ||= false
  5. is_successor ||= false
  6. direct_reply_id ||= false
  7. parent_id ||= false
  8. is_direct_parent = direct_reply_id == status.id
  9. is_direct_child = parent_id == status.in_reply_to_id
  10. centered ||= include_threads && !is_predecessor && !is_successor
  11. h_class = microformats_h_class(status, is_predecessor, is_successor, include_threads)
  12. style_classes = style_classes(status, is_predecessor, is_successor, include_threads)
  13. mf_classes = microformats_classes(status, is_direct_parent, is_direct_child)
  14. entry_classes = h_class + ' ' + mf_classes + ' ' + style_classes
  15. - if status.reply? && include_threads
  16. - if @next_ancestor
  17. .entry{ class: entry_classes }
  18. = link_to short_account_status_url(@next_ancestor.account.username, @next_ancestor), class: 'more light' do
  19. = t('statuses.show_more')
  20. = render partial: 'stream_entries/status', collection: @ancestors, as: :status, locals: { is_predecessor: true, direct_reply_id: status.in_reply_to_id }
  21. .entry{ class: entry_classes }
  22. - if status.reblog?
  23. .pre-header
  24. .pre-header__icon
  25. = fa_icon('retweet fw')
  26. %span
  27. = link_to TagManager.instance.url_for(status.account), class: 'status__display-name muted' do
  28. %strong.emojify= display_name(status.account)
  29. = t('stream_entries.reblogged')
  30. - elsif pinned
  31. .pre-header
  32. .pre-header__icon
  33. = fa_icon('thumb-tack fw')
  34. %span
  35. = t('stream_entries.pinned')
  36. = render (centered ? 'stream_entries/detailed_status' : 'stream_entries/simple_status'), status: status.proper
  37. - if include_threads
  38. = render partial: 'stream_entries/status', collection: @descendants, as: :status, locals: { is_successor: true, parent_id: status.id }