Sha256: 1f853b1270c2e09c866c8c86d6ec60784ad99e4e696f7e873c32228efc310709

Contents?: true

Size: 1.98 KB

Versions: 40

Compression:

Stored size: 1.98 KB

Contents

.cmor-testimonials-category.carousel.slide{class: "#{dom_class(category)} #{category.identifier}", 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{ class: ((i == 0) ? 'active' : '') }
        .row
          - if options[:show_image] && testimonial.image.respond_to?(:variant)
            .testimonial-image-container{ options[:image_container_html] }
              %img.img-thumbnail.rounded-circle{ alt: "", src: main_app.url_for(testimonial.image.variant(options[:variant_options])) }/
          .testimonial-text-container{ options[:text_container_html] }
            %div.testimonial
              = markup_helper(self).to_html(testimonial, :body)
            %div.title
              - if testimonial.role.present?
                %p= "<b>#{testimonial.fullname}</b>, #{testimonial.role} - #{testimonial.company}".html_safe
              - else
                %p= "<b>#{testimonial.fullname}</b> - #{testimonial.company}".html_safe
  - if options[:controls]
    %a.carousel-control-prev{options[:control_html], "data-slide" => "prev", :href => "##{dom_id(category)}", :role => "button"}
      - if options[:font_awesome]
        %i.fa.fa-angle-left
      - else
        %span.control
        %span.sr-only= t('.previous')
    %a.carousel-control-next{options[:control_html], "data-slide" => "next", :href => "##{dom_id(category)}", :role => "button"}
      - if options[:font_awesome]
        %i.fa.fa-angle-right
      - else
        %span.control
        %span.sr-only= t('.next')

Version data entries

40 entries across 40 versions & 1 rubygems

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