Skip to content
Snippets Groups Projects
Unverified Commit e27e5c5e authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #1333 from noesya/fix-gallery-snippet

do not call kamifusen_tag on variant
parents 441778e0 2680c0fc
No related branches found
No related tags found
No related merge requests found
<% block.template.elements.first(4).each do |element| %>
<%
component = element.image_component
blob = component.blob
next unless blob
image = blob.representable? ? blob.representation(resize: 'x180')
: blob
%>
<%= kamifusen_tag image, height: 90, alt: '', class: 'me-2' %>
<% blob = element.image_component.blob %>
<%= kamifusen_tag blob, height: 90, alt: '', class: 'me-2' if blob %>
<% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment