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

Merge pull request #929 from noesya/fix/carousel-extranet

is_carousel in image component preview
parents 44feb20d 17e1f654
No related branches found
No related tags found
No related merge requests found
<%
blob = component.blob
return unless blob
is_carousel = @block.template.is_a?(Communication::Block::Template::Gallery) && @block.template.layout == "carousel"
%>
<figure>
<figure <% if is_carousel %>class="splide__slide"<% end %>>
<%= kamifusen_tag blob, width: 600, class: 'img-fluid mb-1', alt: component.template.try(:alt).blank? ? "" : component.template.alt %>
<figcaption>
<%= sanitize component.template.credit if component.template.try(:credit).present? %>
......
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