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.

43 lines
2.0 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. - if status.application
  29. - if status.application.website.blank?
  30. %strong.detailed-status__application= status.application.name
  31. - else
  32. = link_to status.application.name, status.application.website, class: 'detailed-status__application', target: '_blank', rel: 'noopener'
  33. ·
  34. %span<
  35. = fa_icon('retweet')
  36. %span= status.reblogs.count
  37. ·
  38. %span<
  39. = fa_icon('star')
  40. %span= status.favourites.count