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.

53 lines
2.4 KiB

  1. .detailed-status.light
  2. = link_to TagManager.instance.url_for(status.account), class: 'detailed-status__display-name p-author h-card', target: stream_link_target, rel: 'noopener' do
  3. %div
  4. .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= acct(status.account)
  9. .status__content.p-name.emojify<
  10. - if status.spoiler_text?
  11. %p{ style: 'margin-bottom: 0' }<
  12. %span.p-summary> #{status.spoiler_text}&nbsp;
  13. %a.status__content__spoiler-link{ href: '#' }= t('statuses.show_more')
  14. .e-content{ lang: status.language, style: "display: #{status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }<
  15. = Formatter.instance.format(status)
  16. - unless status.media_attachments.empty?
  17. - if status.media_attachments.first.video?
  18. .video-player><
  19. - if status.sensitive?
  20. = render partial: 'stream_entries/content_spoiler'
  21. %video.u-video{ src: status.media_attachments.first.file.url(:original), loop: true }
  22. - else
  23. .detailed-status__attachments><
  24. - if status.sensitive?
  25. = render partial: 'stream_entries/content_spoiler'
  26. .status__attachments__inner<
  27. - status.media_attachments.each do |media|
  28. = render partial: 'stream_entries/media', locals: { media: media }
  29. .detailed-status__meta
  30. %data.dt-published{ value: status.created_at.to_time.iso8601 }
  31. = link_to TagManager.instance.url_for(status), class: 'detailed-status__datetime u-url u-uid', target: stream_link_target, rel: 'noopener' do
  32. %time.formatted{ datetime: status.created_at.iso8601, title: l(status.created_at) }= l(status.created_at)
  33. ·
  34. - if status.application
  35. - if status.application.website.blank?
  36. %strong.detailed-status__application= status.application.name
  37. - else
  38. = link_to status.application.name, status.application.website, class: 'detailed-status__application', target: '_blank', rel: 'noopener'
  39. ·
  40. %span<
  41. = fa_icon('retweet')
  42. %span= status.reblogs_count
  43. ·
  44. %span<
  45. = fa_icon('star')
  46. %span= status.favourites_count
  47. - if user_signed_in?
  48. ·
  49. = link_to t('statuses.open_in_web'), web_url("statuses/#{status.id}"), class: 'open-in-web-link', target: '_blank'