blob: 3372f8d940b3477d1c1f94c0db3e2ba0b41445ce (
plain) (
blame)
1
2
3
4
5
6
7
8
|
<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>
|