Sha256: 6b321afccc5d4b706099997b1d7caf4c1e5ce67c113cd0b02c0c8da829a9b750

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 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">
      <% 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

2 entries across 2 versions & 1 rubygems

Version Path
scrivito_elastic_slider_widget-0.90.2 app/views/elastic_slider_widget/show.html.erb
scrivito_elastic_slider_widget-0.90.1 app/views/elastic_slider_widget/show.html.erb