Sha256: e0361b7e065abb5b2552a5d0996853534d56abc65316c8fcc0307771c7fc18c9
Contents?: true
Size: 1023 Bytes
Versions: 2
Compression:
Stored size: 1023 Bytes
Contents
.hero-slider-content-block{ class: ('hero-slider-content-block--full-bleed' if view_model.data[:full_bleed]), data: { slick_slider: view_model.content_block_options } } - view_model.series.each_with_index do |slide, i| - if slide.data[:image].present? .hero-slider-content-block__slide = image_tag view_model.find_asset(slide.data[:image]).url, class: 'hero-slider-content-block__slide-image', alt: slide.data[:alt_text].presence - if slide.has_content? - slide_content = capture_haml do %div{ class: ('content-wrapper' if view_model.data[:full_bleed]) } .hero-slider-content-block__slide-content - if slide.data[:heading].present? .hero-slider-content-block__slide-heading= slide.data[:heading] - if slide.data[:sub_heading].present? .hero-slider-content-block__slide-sub-heading= slide.data[:sub_heading] = link_to_if slide.data[:url].present?, slide_content, slide.data[:url]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-one_theme-1.3.1 | app/views/workarea/storefront/content_blocks/_hero_slider.html.haml |
workarea-one_theme-1.3.0 | app/views/workarea/storefront/content_blocks/_hero_slider.html.haml |