闭社主体 forked from https://github.com/tootsuite/mastodon
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.

36 lines
1.5 KiB

  1. .detailed-status.light
  2. = link_to TagManager.instance.url_for(status.account), class: 'detailed-status__display-name', 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: ''
  6. %span.display-name
  7. %strong= display_name(status.account)
  8. %span= acct(status.account)
  9. .status__content= 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 }
  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'
  23. %div.detailed-status__meta
  24. = link_to TagManager.instance.url_for(status), class: 'detailed-status__datetime', target: @external_links ? '_blank' : nil, rel: 'noopener' do
  25. %span= l(status.created_at)
  26. ·
  27. %span
  28. = fa_icon('retweet')
  29. %span= status.reblogs.count
  30. ·
  31. %span
  32. = fa_icon('star')
  33. %span= status.favourites.count