|
19 | 19 | - if status.spoiler_text? |
20 | 20 | %p{ :style => ('margin-bottom: 0' unless current_account&.user&.setting_expand_spoilers) }< |
21 | 21 | %span.p-summary> #{Formatter.instance.format_spoiler(status, autoplay: autoplay)} |
22 | | - %a.status__content__spoiler-link{ href: '#' }= t('statuses.show_more') |
23 | | - .e-content{ lang: status.language, style: "display: #{!current_account&.user&.setting_expand_spoilers && status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" }= Formatter.instance.format(status, custom_emojify: true, autoplay: autoplay) |
| 22 | + %button.status__content__spoiler-link= t('statuses.show_more') |
| 23 | + .e-content{ lang: status.language, style: "display: #{!current_account&.user&.setting_expand_spoilers && status.spoiler_text? ? 'none' : 'block'}; direction: #{rtl_status?(status) ? 'rtl' : 'ltr'}" } |
| 24 | + = Formatter.instance.format(status, custom_emojify: true, autoplay: autoplay) |
| 25 | + - if status.preloadable_poll |
| 26 | + = react_component :poll, disabled: true, poll: ActiveModelSerializers::SerializableResource.new(status.preloadable_poll, serializer: REST::PollSerializer, scope: current_user, scope_name: :current_user).as_json do |
| 27 | + = render partial: 'stream_entries/poll', locals: { status: status, poll: status.preloadable_poll, autoplay: autoplay } |
24 | 28 |
|
25 | | - - if status.preloadable_poll |
26 | | - = react_component :poll, disabled: true, poll: ActiveModelSerializers::SerializableResource.new(status.preloadable_poll, serializer: REST::PollSerializer, scope: current_user, scope_name: :current_user).as_json do |
27 | | - = render partial: 'stream_entries/poll', locals: { status: status, poll: status.preloadable_poll, autoplay: autoplay } |
28 | | - - elsif !status.media_attachments.empty? |
| 29 | + - if !status.media_attachments.empty? |
29 | 30 | - if status.media_attachments.first.video? |
30 | 31 | - video = status.media_attachments.first |
31 | 32 | = react_component :video, src: video.file.url(:original), preview: video.file.url(:small), blurhash: video.blurhash, sensitive: !current_account&.user&.show_all_media? && status.sensitive? || current_account&.user&.hide_all_media?, width: 670, height: 380, detailed: true, inline: true, alt: video.description do |
|
0 commit comments