promethee 1.6.26 → 1.6.27
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e38a05ee8fd2de7e535665b882bbedafc8a77995
|
4
|
+
data.tar.gz: 866bba66c05069c0993deb7a462be19f56f26162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97b3b9191e6453397f213c48d70287a72061e16dcc121bb7555fcf81d5eef9709f40d13fb3f6b41835ebdb28a7ed91cf26fbce3ec60b212317e0e699103188d6
|
7
|
+
data.tar.gz: 7683f16827585f76b58aca0db5292477c3fd4cd18fd2ea7e2141919e70ede6f2822f2eb49ce251322115f599c6ec7d08f1082d7230fde482e432621b3a1ebb5c
|
@@ -8,7 +8,7 @@ searchable_alt = component[:attributes][:searchable_alt].to_s
|
|
8
8
|
searchable_caption = component[:attributes][:searchable_caption].to_s
|
9
9
|
%>
|
10
10
|
<figure class="<%= promethee_class_for component %>">
|
11
|
-
<%=
|
11
|
+
<%= render 'promethee/show/image.srcset', blob: blob, alt: searchable_alt if blob %>
|
12
12
|
<% unless searchable_caption.blank? %>
|
13
13
|
<figcaption>
|
14
14
|
<%= searchable_caption %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<img src="<%= url_for(blob.variant(resize: '1920')) %>"
|
2
|
+
srcset="
|
3
|
+
<% [1920, 1600, 1440, 1366, 1280, 1024, 800, 768, 640, 360, 200].each do |size| %>
|
4
|
+
<%= url_for(blob.variant(resize: size)) %> <%= size%>w,
|
5
|
+
<% end %>
|
6
|
+
"
|
7
|
+
sizes="100vw"
|
8
|
+
alt="<%= alt.html_safe %>"
|
9
|
+
class="img-responsive"
|
10
|
+
>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promethee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Dargelos
|
@@ -261,6 +261,7 @@ files:
|
|
261
261
|
- app/views/promethee/preview.html.erb
|
262
262
|
- app/views/promethee/show/_component.html.erb
|
263
263
|
- app/views/promethee/show/_components.html.erb
|
264
|
+
- app/views/promethee/show/_image.srcset.html.erb
|
264
265
|
- app/views/promethee/templates/_uploader.html.erb
|
265
266
|
- app/views/promethee/utils/_html-safe.html.erb
|
266
267
|
- app/views/promethee/utils/_humanize.html.erb
|