Sha256: 2df38b87f8df9b2043e0ba6292aa6ba8f9a021b8b0bf7d1c41a8c66515d6c8f3

Contents?: true

Size: 1.02 KB

Versions: 5

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.url, 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

5 entries across 5 versions & 1 rubygems

Version Path
pages_cms-2.2.3 app/views/pages_cms/pages/_slider.html.erb
pages_cms-2.2.2 app/views/pages_cms/pages/_slider.html.erb
pages_cms-2.2.1 app/views/pages_cms/pages/_slider.html.erb
pages_cms-2.1.1 app/views/pages_cms/pages/_slider.html.erb
pages_cms-2.1.0 app/views/pages_cms/pages/_slider.html.erb