Sha256: b53d4ace1004996f457e49d532e2be25779ba9d58269bb4779b9b07b2e4357ab

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

<div class="item <%= widget.additional_classes(params) %>">
  <picture>
    <% if widget.image %>
      <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 %>'>

      <% end %>
      <%= 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

4 entries across 4 versions & 1 rubygems

Version Path
scrivito_elastic_slider_widget-0.93.2 app/views/elastic_slider_panel_widget/show.html.erb
scrivito_elastic_slider_widget-0.93.1 app/views/elastic_slider_panel_widget/show.html.erb
scrivito_elastic_slider_widget-0.93.0 app/views/elastic_slider_panel_widget/show.html.erb
scrivito_elastic_slider_widget-0.92.2 app/views/elastic_slider_panel_widget/show.html.erb