Sha256: 8f99a5a3ab90bc73a9cd46c45d832231401395c9402c63b0b5618a61faac609b

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

<% if has_slides? %>
  <section class="extended home-section">
    <div class="row">
      <div class="column">

        <div class="orbit" role="region" data-orbit id="slider-block">
          <div class="orbit-wrapper">
            <div class="orbit-controls">

            </div>
            <div class="orbit-container">
              <% slides.each_with_index do |content_block, index| %>
                <% next unless content_block.manifest %>
                <%= cell content_block.manifest.cell, content_block, context: { index: index } %>
              <% end %>
            </div>
          </div>
          <nav class="orbit-bullets" aria-label="slider-navigation">
            <a class="orbit-previous"><span class="show-for-sr"><%= t("decidim.slider.homepage.main.previous_slide") %></span>
              <%= icon "chevron-left", class: "icon--small", role: "img" %>
            </a>

            <button class="is-active pause-btn" data-slide="0">
              <span class="show-for-sr"><%= t("decidim.slider.homepage.main.slide_details", count: 1) %></span>
              <span class="show-for-sr" data-slide-active-label><%= t("decidim.slider.homepage.main.current_slide") %></span>
            </button>

            <% (1...slides.size).to_a.each do |counter| %>
              <button data-slide="<%= counter %>"><span class="show-for-sr"><%= t("decidim.slider.homepage.main.slide_details", count: 1+counter) %></span></button>
            <% end %>
            <a class="orbit-next"><span class="show-for-sr"><%= t("decidim.slider.homepage.main.next_slide") %></span>
              <%= icon "chevron-right", class: "icon--small", role: "img" %>
            </a>

          </nav>
        </div>
      </div>
    </div>

    <%= stylesheet_pack_tag "decidim_slider" %>
    <%= javascript_pack_tag "decidim_slider" %>
  </section>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-slider-0.0.1 app/cells/decidim/slider/homepage/main/show.erb