mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8 lines
295 B
Text
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>
|