Sha256: cf5160cda1019506b80d722ad5882cfdf556cd3cab28529a461406fee916940e
Contents?: true
Size: 1.39 KB
Versions: 5
Compression:
Stored size: 1.39 KB
Contents
<div id="<%= params[:carousel_id] %>" class="carousel slide <%= params[:class] %>" data-ride="carousel"> <% if params[:indicators_carousel] %> <ol class="carousel-indicators"> <% @banners.each_with_index do |banner, index| %> <li data-target="#<%= params[:carousel_id] %>" data-slide-to="<%= index %>" class="<%= 'active' if banner == @banners.first %>"></li> <% end %> </ol> <% end %> <div class="carousel-inner" role="listbox"> <% @banners.each do |banner| %> <div class="item <%= 'active' if banner == @banners.first %>"> <%= link_to (banner.url.blank? ? 'javascript: void(0)' : banner.url) do %> <%= image_tag banner.attachment.url(params[:style]), alt: banner.alt_text, class: params[:image_class] %> <% end %> </div> <% end %> </div> <% if params[:buttons_carousel] %> <a class="left <%= params[:buttons_class] %>" href="#<%= params[:carousel_id] %>" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only"><%= Spree.t(:previous) %></span> </a> <a class="right <%= params[:buttons_class] %>" href="#<%= params[:carousel_id] %>" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only"><%= Spree.t(:next) %></span> </a> <% end %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems