Sha256: 1617f2b2145d0176300f1ef30cd4dd08a1734e9a631a1290df8beae94984787b
Contents?: true
Size: 1.09 KB
Versions: 4
Compression:
Stored size: 1.09 KB
Contents
<div id="carousel<%= widget.id %>" class="carousel slide elastic-slider" data-ride="carousel" data-keyboard="false"> <% if widget.panels.present?%> <ol class="carousel-indicators"> <% (0..widget.panels.size-1).each do |index| %> <li data-target="#carousel<%= widget.id %>" data-slide-to="<%= index %>" <% if index == 0 %>class="active"<% end %>></li> <% end %> </ol> <div class="carousel-inner" style="height: <%= widget.slider_height %>"> <% widget.panels.each do |panel| %> <%= render template: 'elastic_slider_panel_widget/show', locals: {widget: panel} %> <% end %> </div> <a class="left carousel-control" href="#carousel<%= widget.id %>" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> <a class="right carousel-control" href="#carousel<%= widget.id %>" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a> <% else %> <div class="alert alert-info"> There are no panels added to this slider. Go to details view to add some. </div> <% end %> </div>
Version data entries
4 entries across 4 versions & 1 rubygems