scrivito_elastic_slider_widget 0.92.1 → 0.92.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f358b84072c49b0812b7443c3e739dc9ba6cabf1
4
- data.tar.gz: 21e7ee125288295573f01222f50c10945807c05e
3
+ metadata.gz: 992f876fe6f35c9d74e4e9402dec858717e9a547
4
+ data.tar.gz: fc6b621e24015aab6b3788f4e0500e13a73b480f
5
5
  SHA512:
6
- metadata.gz: 22e118cc3c23136e79ea2bc8d8768cceef9e490916f47b4bc7d3ecb01c9ea49984c65ff16c27024b726407528ee196b907344232882fd1a750828d083433a688
7
- data.tar.gz: 8e171200c37b82bcda81c29991671fae88151541c5fcc0bbc4030a68e01a1adc66e9a17f82c95745bd4e0b26ecec0dfde819ab4508ae13ee965ed90dcecfcdf3
6
+ metadata.gz: bd7dd4de2288c03783e69269eb06d843ee3d8df188d2d9abd2f7324f6832c73d5d51349074339f41c159be2bf4a9630c22432320217c06665992098f9eb0ad45
7
+ data.tar.gz: 5f8a2e258f2dc5af589b58f12af21f394e3e72136fa22df99a42748a5821d1946c53c7f2e5f48b54edd9c402c7777f2bc2342416a4a8655f492b449737bc4fd1
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ScrivitoElasticSlider
2
2
 
3
- A Scrivito widget for adding a fullscreen slider based on Bootstrap.
3
+ A Scrivito widget for adding a fullscreen slider based on Bootstrap. Instead of an image tag as Background, a picture tag is used. The image versions will be generated automatically with the scrivito transform and using the height of the widget.
4
4
 
5
5
  ## Prerequisites
6
6
 
@@ -1,4 +1,4 @@
1
1
  <%= scrivito_details_for do %>
2
2
  <h4><%= t('scrivito_elastic_slider_widget.details.background_image', default: 'Background Image') %></h4>
3
- <%= scrivito_image_tag(widget, :image, data: { filter_context: 'images' }) %>
3
+ <%= scrivito_image_tag(widget, :image, data: { scrivito_editors_filter_context: {_images: true} }) %>
4
4
  <% end %>
@@ -1,22 +1,25 @@
1
1
  <div class="item <%= widget.additional_classes(params) %>">
2
2
  <picture>
3
- <source media='(max-width: 400px) and (orientation: portrait)'
4
- sizes='100vw'
5
- srcset='<%= widget.image.binary.transform(width: 400, height: widget.height, fit: :crop, crop: :center).url %>'>
3
+ <% if widget.image %>
4
+ <source media='(max-width: 400px) and (orientation: portrait)'
5
+ sizes='100vw'
6
+ srcset='<%= widget.image.binary.transform(width: 400, height: widget.height, fit: :crop, crop: :center).url %>'>
6
7
 
7
- <source media='(max-width: 768px)'
8
- sizes='100vw'
9
- srcset='<%= widget.image.binary.transform(width: 768, height: widget.height, fit: :crop, crop: :center).url %>'>
8
+ <source media='(max-width: 768px)'
9
+ sizes='100vw'
10
+ srcset='<%= widget.image.binary.transform(width: 768, height: widget.height, fit: :crop, crop: :center).url %>'>
10
11
 
11
- <source media='(min-width: 668px) and (max-width: 991px)'
12
- sizes='100vw'
13
- srcset='<%= widget.transform_for_desktop(991).url %>'>
12
+ <source media='(min-width: 668px) and (max-width: 991px)'
13
+ sizes='100vw'
14
+ srcset='<%= widget.transform_for_desktop(991).url %>'>
14
15
 
15
- <source media='(min-width: 991px) and (max-width: 1200px)'
16
- sizes='100vw'
17
- srcset='<%= widget.transform_for_desktop(1200).url %>'>
18
- <%= scrivito_image_tag widget, :image, {class: 'img-responsive'}, transform: widget.fallback_transform %>
19
- </picture>
16
+ <source media='(min-width: 991px) and (max-width: 1200px)'
17
+ sizes='100vw'
18
+ srcset='<%= widget.transform_for_desktop(1200).url %>'>
19
+
20
+ <% end %>
21
+ <%= scrivito_image_tag widget, :image, {class: 'img-responsive'}, transform: widget.fallback_transform %>
22
+ </picture>
20
23
  <div class="carousel-caption">
21
24
  <div class="content">
22
25
  <%= scrivito_tag :div, widget, :panel_content %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoElasticSliderWidget
2
- VERSION = "0.92.1"
2
+ VERSION = "0.92.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_elastic_slider_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.92.1
4
+ version: 0.92.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-03 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler