Sha256: 0ce78b51ca223d75b3b2589d07814bc88e540a78d838976e9ebe569e621b270e

Contents?: true

Size: 1007 Bytes

Versions: 1

Compression:

Stored size: 1007 Bytes

Contents

<div class="item <%= widget.additional_classes(params) %>">
  <picture>
    <source media='(max-width: 400px) and (orientation: portrait)'
     sizes='100vw'
     srcset='<%= widget.image.binary.transform(width: 400, height: widget.height, fit: :crop, crop: :center).url %>'>

    <source media='(max-width: 768px)'
     sizes='100vw'
     srcset='<%= widget.image.binary.transform(width: 768, height: widget.height, fit: :crop, crop: :center).url %>'>

    <source media='(min-width: 668px) and (max-width: 991px)'
      sizes='100vw'
      srcset='<%= widget.transform_for_desktop(991).url %>'>

    <source media='(min-width: 991px) and (max-width: 1200px)'
      sizes='100vw'
      srcset='<%= widget.transform_for_desktop(1200).url %>'>
    <%= scrivito_image_tag widget, :image, {class: 'img-responsive'}, transform: widget.fallback_transform %>
  </picture>
  <div class="carousel-caption">
    <div class="content">
      <%= scrivito_tag :div, widget, :panel_content %>
    </div>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scrivito_elastic_slider_widget-0.92.1 app/views/elastic_slider_panel_widget/show.html.erb