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

9 lines
294 B
Plaintext

<figure class="attachment attachment--preview">
<%= image_tag remote_image.url, width: remote_image.width, height: remote_image.height %>
<% if caption = remote_image.try(:caption) %>
<figcaption class="attachment__caption">
<%= caption %>
</figcaption>
<% end %>
</figure>