Sha256: b45a7baf148800ad7b364b705ddea32321f922b383076f42fbe26787bb04f15f

Contents?: true

Size: 1.69 KB

Versions: 7

Compression:

Stored size: 1.69 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.published.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.published.each_with_index do |testimonial, i|
      .item.carousel-item.text-center{ class: ((i == 0) ? 'active' : '') }
        - if options[:show_image] && testimonial.image.respond_to?(:variant)
          .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
          - if testimonial.role.present?
            = "<b>#{testimonial.fullname}</b>, #{testimonial.role} - #{testimonial.company}".html_safe
          - else
            = "<b>#{testimonial.fullname}</b> - #{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.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.sr-only= t('.next')

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cmor_testimonials-0.0.17.pre app/views/cmor/testimonials/application_view_helper/_render_category.html.haml
cmor_testimonials-0.0.16.pre app/views/cmor/testimonials/application_view_helper/_render_category.html.haml
cmor_testimonials-0.0.15.pre app/views/cmor/testimonials/application_view_helper/_render_category.html.haml
cmor_testimonials-0.0.14.pre app/views/cmor/testimonials/application_view_helper/_render_category.html.haml
cmor_testimonials-0.0.13.pre app/views/cmor/testimonials/application_view_helper/_render_category.html.haml
cmor_testimonials-0.0.12.pre app/views/cmor/testimonials/application_view_helper/_render_category.html.haml
cmor_testimonials-0.0.11.pre app/views/cmor/testimonials/application_view_helper/_render_category.html.haml