Sha256: fce8c6717f655469bd27eab66ccbe31b2ff5bbe3608902a15c577c0251631df3

Contents?: true

Size: 1.79 KB

Versions: 50

Compression:

Stored size: 1.79 KB

Contents

<div class="container">
	<div class="row">
		<div class="col-md-8 col-center m-auto">
			<h2><%= Cmor::Testimonials::Category.human_attribute_name(component.category_identifier) %></h2>
			<div id="<%= component.category_identifier %>" class="carousel slide" data-ride="carousel">
				<!-- Carousel indicators -->
				<ol class="carousel-indicators">
          <% component.testimonials.each_with_index do |t, i| %>
					<li data-target="<%= "##{component.category_identifier}" %>" data-slide-to="<%= t.id %>" class="<%= (i == 0) ? "active" : "" %>"></li>
          <% end %>
				</ol>   
				<!-- Wrapper for carousel items -->
				<div class="carousel-inner">
          <% component.testimonials.each_with_index do |t, i| %>
            <div class="item carousel-item <%= (i == 0) ? "active" : "" %>">
              <p class="testimonial"><%= t.body.html_safe %></p>
              <div class="img-box"><img src="<%= main_app.url_for(t.image.variant(resize: "100x100"))%>" alt=""></div>
              <p class="overview">
                <b><%= t.fullname %></b>, <%= t.role %> @ <%= t.company %>
              </p>
            </div>
          <% end %>
				</div>
				<!-- Carousel controls -->
				<% if options[:controls] %>
          <a class="carousel-control-prev" href="#<%= component.category_identifier %>" role="button" data-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="sr-only"><%= t('.previous') %></span>
          </a>
          <a class="carousel-control-next" href="#<%= component.category_identifier %>" role="button" data-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="sr-only"><%= t('.next') %></span>
          </a>
        <% end %>
			</div>
		</div>
	</div>
</div>

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
cmor_testimonials-0.0.60.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.59.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.58.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.57.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.56.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.55.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.54.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.53.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.52.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.51.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.50.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.49.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.48.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.45.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.44.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.43.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.42.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.41.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.40.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb
cmor_testimonials-0.0.39.pre app/views/components/cmor/testimonials/_testimonials_box.html.erb