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.

37 lines
1.7 KiB

  1. .detailed-status.light
  2. = link_to TagManager.instance.url_for(status.account), class: 'detailed-status__display-name p-author h-card', target: @external_links ? '_blank' : nil, rel: 'noopener' do
  3. %div
  4. %div.avatar
  5. = image_tag status.account.avatar.url(:original), width: 48, height: 48, alt: '', class: 'u-photo'
  6. %span.display-name
  7. %strong.p-name.emojify= display_name(status.account)
  8. %span.p-nickname= acct(status.account)
  9. .status__content.e-content.p-name.emojify= Formatter.instance.format(status)
  10. - unless status.media_attachments.empty?
  11. - if status.media_attachments.first.video?
  12. .video-player
  13. - if status.sensitive?
  14. = render partial: 'stream_entries/content_spoiler'
  15. %video{ src: status.media_attachments.first.file.url(:original), loop: true, class: 'u-video' }
  16. - else
  17. .detailed-status__attachments
  18. - if status.sensitive?
  19. = render partial: 'stream_entries/content_spoiler'
  20. - status.media_attachments.each do |media|
  21. .media-item
  22. = link_to '', (media.remote_url.blank? ? media.file.url(:original) : media.remote_url), style: "background-image: url(#{media.file.url(:original)})", target: '_blank', rel: 'noopener', class: "u-#{media.video? ? 'video' : 'photo'}"
  23. %div.detailed-status__meta
  24. %data.dt-published{ value: status.created_at.to_time.iso8601 }
  25. = link_to TagManager.instance.url_for(status), class: 'detailed-status__datetime u-url u-uid', target: @external_links ? '_blank' : nil, rel: 'noopener' do
  26. %span= l(status.created_at)
  27. ·
  28. %span
  29. = fa_icon('retweet')
  30. %span= status.reblogs.count
  31. ·
  32. %span
  33. = fa_icon('star')
  34. %span= status.favourites.count