app/views/admin/communication/blocks/templates/gallery/_show.html.erb
<div class="<%= block_html_class(block) %>">
<div class="container">
<div class="block-content">
<%= render 'admin/communication/blocks/partials/top', block: block %>
<% if block.template.layout == "carousel" %>
<% if !block.template.elements.one? %>
<div class="splide" role="group" data-splide='{"arrows":true,"pagination":false,"autoWidth":true,"autoplay":false}'>
<div class="splide__track">
<div class="splide__list">
<% end %>
<% block.template.elements.each do |element| %>
<%= block_component_show block, :image, template: element %>
<% end %>
<% if !block.template.elements.one? %>
</div>
</div>
</div>
<% end %>
<% else %>
<div class="gallery" role="group">
<% block.template.elements.each do |element| %>
<%= block_component_show block, :image, template: element %>
<% end %>
</div>
<% end %>
</div>
</div>
</div>