1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actiontext/app/views/action_text/attachables/_remote_image.html.erb
2019-01-04 22:22:49 -05:00

8 lines
295 B
Text

<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>