Files
fizzy/app/views/action_text/attachables/_remote_video.html.erb
T
2025-11-02 09:38:48 +01:00

11 lines
402 B
Plaintext

<figure class="attachment attachment--preview attachment--video">
<%= tag.video controls: true, width: remote_video.width, height: remote_video.height do %>
<%= tag.source src: remote_video.url, type: remote_video.content_type %>
<% end %>
<% if caption = remote_video.try(:caption) %>
<figcaption class="attachment__caption">
<%= caption %>
</figcaption>
<% end %>
</figure>