Sha256: f8f447c1a46168f124f993226493e39597f38f6aa126395f50236b3728c99f64

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

<div class="container-full">
	<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
		<!-- Indicators -->
		<ol class="carousel-indicators">
			<% set = false %>
			<% cou = 0 %>
			<% slider_elements.each do |element| %>
				<% if set %>
					<% active = '' %>
				<% else %>
					<% active = 'active' %>
					<% set = true %>
				<% end %>
				<li data-target="#carousel-example-generic" data-slide-to="<%= cou %>" class="<%= active %>"></li>
				<% cou += 1 %>
			<% end %>
		</ol>

		<!-- Wrapper for slides -->
		<div class="carousel-inner" role="listbox">

			<% set = false %>
			<% slider_elements.each do |element| %>
				<% if set %>
					<% active = '' %>
				<% else %>
					<% active = 'active' %>
					<% set = true %>
				<% end %>
				<div class="item <%= active %>">
					<%= image_tag element.image.file, class: "img-responsive center-block" %>
					<div class="carousel-caption">
						<h1><%= link_to element.header, element.link %></h1>
					</div>
				</div>
			<% end %>

		</div>

	</div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pages_cms-2.0.1 app/views/pages_cms/pages/_slider.html.erb
pages_cms-2.0.0 app/views/pages_cms/pages/_slider.html.erb
pages_cms-1.2.3 app/views/pages_cms/pages/_slider.html.erb
pages_cms-1.2.2 app/views/pages_cms/pages/_slider.html.erb
pages_cms-1.2.1 app/views/pages_cms/pages/_slider.html.erb
pages_cms-1.2.0 app/views/pages_cms/pages/_slider.html.erb
pages_cms-1.1.0 app/views/pages_cms/pages/_slider.html.erb