Sha256: 196f184b385511a924cb5c4539b00e5c918e520350223921d0e6872b3b05c67e
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
.cmor-testimonials-category.carousel.slide{class: dom_class(category), id: dom_id(category), data: { ride: 'carousel', interval: (options[:interval].to_f * 1000).to_i, keyboard: options[:keyboard].to_s, pause: options[:pause], wrap: options[:wrap].to_s } } - if options[:indicators] / Carousel indicators %ol.carousel-indicators - category.testimonials.count.times do |i| %li{ class: (i == 0) ? "active" : "", "data-slide-to" => i, "data-target" => "##{dom_id(category)}"} / Wrapper for carousel items .carousel-inner - category.testimonials.each_with_index do |testimonial, i| .item.carousel-item.text-center{ class: ((i == 0) ? 'active' : '') } .img-box %img.img-thumbnail.rounded-circle{:alt => "", :src => main_app.url_for(testimonial.image.variant(options[:variant_options])) }/ %p.testimonial= markup_helper(self).to_html(testimonial, :body) %p.overview = "<b>#{testimonial.fullname}</b>, #{testimonial.role} - #{testimonial.company}".html_safe - if options[:controls] %a.carousel-control-prev{"data-slide" => "prev", :href => "##{dom_id(category)}", :role => "button"} - if options[:font_awesome] %i.fa.fa-angle-left - else %span.carousel-control-prev-icon{"aria-hidden" => "true"} %span.sr-only= t('.previous') %a.carousel-control-next{"data-slide" => "next", :href => "##{dom_id(category)}", :role => "button"} - if options[:font_awesome] %i.fa.fa-angle-right - else %span.carousel-control-next-icon{"aria-hidden" => "true"} %span.sr-only= t('.next')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cmor_testimonials-0.0.8.pre | app/views/cmor/testimonials/application_view_helper/_render_category.html.haml |