promethee 4.1.9 → 4.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/promethee/components/aside/_show.html.erb +2 -1
- data/app/views/promethee/components/blockquote/_show.html.erb +2 -1
- data/app/views/promethee/components/collection/_show.html.erb +2 -1
- data/app/views/promethee/components/collection_item/_show.html.erb +5 -3
- data/app/views/promethee/components/column/_show.html.erb +2 -1
- data/app/views/promethee/components/cover/_show.html.erb +3 -1
- data/app/views/promethee/components/faq/_show.html.erb +2 -1
- data/app/views/promethee/components/faq_item/_show.html.erb +2 -1
- data/app/views/promethee/components/image/_show.html.erb +2 -1
- data/app/views/promethee/components/page/_show.html.erb +2 -1
- data/app/views/promethee/components/row/_show.html.erb +1 -0
- data/app/views/promethee/components/slider/_show.html.erb +3 -1
- data/app/views/promethee/components/slider_item/_show.html.erb +2 -1
- data/app/views/promethee/components/table/_show.html.erb +2 -1
- data/app/views/promethee/components/text/_show.html.erb +2 -1
- data/app/views/promethee/components/video/_show.html.erb +2 -1
- data/lib/promethee/rails/helper.rb +5 -1
- data/lib/promethee/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0beecf6dd37d65be3957b1610ebc4c938388e787b8e8c6991c0a5d467ffd665b
|
4
|
+
data.tar.gz: b897dd103018126be4ef58c662f59acf90ff43302db2c3d35ffa8627dcf25670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bb4b71ab5b06e25c62ae3ed09147f909bdf6cd65d6869242e55b9a05c723d75289958f4e84ddf89b0fc6886215aed0730219e5e4f7688e773ad63d330873955
|
7
|
+
data.tar.gz: 8ec5b9f95b687ec5d658df2260e896c30ef09fb7a962ec7ecf694e4762a16e5afd9cc86df57de4e8c82a7008bdefe6b82a3aae47b990d3fe2978481bae3a6a50
|
@@ -5,7 +5,8 @@
|
|
5
5
|
open_label_position = component[:attributes].dig(:open_label_position, :value)&.to_s
|
6
6
|
%>
|
7
7
|
|
8
|
-
<aside
|
8
|
+
<aside class="<%= promethee_class_for component %> aside"
|
9
|
+
id="<%= promethee_id_for component %>">
|
9
10
|
<div class="promethee__component__row">
|
10
11
|
<div class="promethee__component__content">
|
11
12
|
<div class="aside__content">
|
@@ -3,7 +3,8 @@
|
|
3
3
|
author = component[:attributes].dig(:author, :value)&.to_s
|
4
4
|
%>
|
5
5
|
|
6
|
-
<div
|
6
|
+
<div class="<%= promethee_class_for(component) %>"
|
7
|
+
id="<%= promethee_id_for component %>">
|
7
8
|
<div class="promethee__component__row">
|
8
9
|
<div class="promethee__component__content">
|
9
10
|
<blockquote class="blockquote">
|
@@ -12,7 +12,8 @@
|
|
12
12
|
end
|
13
13
|
%>
|
14
14
|
|
15
|
-
<div
|
15
|
+
<div class="row <%= promethee_class_for component %>"
|
16
|
+
id="<%= promethee_id_for component %>">
|
16
17
|
<% component[:children].each.with_index do |child, n| %>
|
17
18
|
<div class="<%= col_classes %>">
|
18
19
|
<%= render 'promethee/show/component', component: child %>
|
@@ -17,8 +17,8 @@ when 'video'
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
%>
|
20
|
-
<div
|
21
|
-
|
20
|
+
<div class="<%= promethee_class_for component %> collection-item__content"
|
21
|
+
id="<%= promethee_id_for component %>">
|
22
22
|
<% if iframe_src.present? %>
|
23
23
|
<div class="embed-responsive embed-responsive-16by9">
|
24
24
|
<iframe frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="allowfullscreen" src="<%= iframe_src %>"></iframe>
|
@@ -26,5 +26,7 @@ end
|
|
26
26
|
<% elsif image_blob.present? %>
|
27
27
|
<%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', caption: caption %>
|
28
28
|
<% end %>
|
29
|
-
|
29
|
+
<div class="collection-item__content__caption">
|
30
|
+
<%= caption %>
|
31
|
+
</div>
|
30
32
|
</div>
|
@@ -41,6 +41,7 @@ if component[:attributes].dig(:mobile, :value, :enabled, :value)
|
|
41
41
|
classes += " col-xs-#{size} col-xs-offset-#{offset}" # BS3, does nothing for BS4
|
42
42
|
end
|
43
43
|
%>
|
44
|
-
<div
|
44
|
+
<div class="<%= classes %> <%= promethee_class_for component %>"
|
45
|
+
id="<%= promethee_id_for component %>">
|
45
46
|
<%= render 'promethee/show/components', components: component[:children] %>
|
46
47
|
</div>
|
@@ -5,7 +5,9 @@ surtitle = component[:attributes].dig(:surtitle, :value)&.to_s
|
|
5
5
|
title = component[:attributes].dig(:title, :value)&.to_s
|
6
6
|
subtitle = component[:attributes].dig(:subtitle, :value)&.to_s
|
7
7
|
%>
|
8
|
-
<div
|
8
|
+
<div class="<%= promethee_class_for(component) %>"
|
9
|
+
id="<%= promethee_id_for component %>"
|
10
|
+
style="background-image: url(<%= url_for(blob.variant(resize: '1920>', quality: 95)) if blob %>)">
|
9
11
|
<div class="container">
|
10
12
|
<div class="promethee__component__row">
|
11
13
|
<div class="promethee__component__content">
|
@@ -1,4 +1,5 @@
|
|
1
|
-
<div
|
1
|
+
<div class="<%= promethee_class_for component %>"
|
2
|
+
id="<%= promethee_id_for component %>">
|
2
3
|
<div class="promethee__component__row">
|
3
4
|
<div class="promethee__component__content">
|
4
5
|
<% component[:children].each do |child| %>
|
@@ -6,7 +6,8 @@ special_question = component[:attributes].dig(:special_question, :value)
|
|
6
6
|
image_blob = blob_from_data component[:attributes].dig(:image, :value)
|
7
7
|
%>
|
8
8
|
|
9
|
-
<div
|
9
|
+
<div class="<%= promethee_class_for component %> <%= 'promethee__component__faq_item--special' if special_question %>"
|
10
|
+
id="<%= promethee_id_for component %>">
|
10
11
|
<h4 data-toggle="collapse"
|
11
12
|
data-target="#collapse-faq-<%= component[:id] %>"
|
12
13
|
aria-expanded="false"
|
@@ -4,7 +4,8 @@ blob = blob_from_data component[:attributes].dig(:image, :value)
|
|
4
4
|
alt = component[:attributes].dig(:alt, :value)&.to_s
|
5
5
|
caption = component[:attributes].dig(:caption, :value)&.to_s
|
6
6
|
%>
|
7
|
-
<figure class="<%= promethee_class_for component %>"
|
7
|
+
<figure class="<%= promethee_class_for component %>"
|
8
|
+
id="<%= promethee_id_for component %>">
|
8
9
|
<div class="promethee__component__row">
|
9
10
|
<div class="promethee__component__content">
|
10
11
|
<%= render 'promethee/show/image.srcset', blob: blob, alt: alt, caption: caption if blob %>
|
@@ -11,6 +11,7 @@
|
|
11
11
|
<script><%= javascripts %></script>
|
12
12
|
<% end %>
|
13
13
|
|
14
|
-
<div
|
14
|
+
<div class="<%= promethee_class_for component %>"
|
15
|
+
id="<%= promethee_id_for component %>">
|
15
16
|
<%= render 'promethee/show/components', components: component[:children] %>
|
16
17
|
</div>
|
@@ -22,6 +22,7 @@ end
|
|
22
22
|
%>
|
23
23
|
|
24
24
|
<div class="row <%= promethee_class_for component %><%= ' promethee__component__row--background' if has_background %>"
|
25
|
+
id="<%= promethee_id_for component %>"
|
25
26
|
style="background-color: <%= background_color %>; <%= background_images.count > 0 ? "background-repeat: no-repeat; background-image: #{background_images.join(', ')}; background-position: #{background_positions.join(', ')}; background-size: #{background_sizes.join(', ')};" : '' %>">
|
26
27
|
<%= render 'promethee/show/components', components: component[:children] %>
|
27
28
|
</div>
|
@@ -1,4 +1,6 @@
|
|
1
|
-
<div
|
1
|
+
<div class="carousel slide <%= promethee_class_for component %>"
|
2
|
+
id="<%= promethee_id_for component %>"
|
3
|
+
data-ride="carousel">
|
2
4
|
<div class="carousel-inner">
|
3
5
|
<% component[:children].each.with_index do |item, n| %>
|
4
6
|
<div class="carousel-item item<%= ' active' if n.zero? %>">
|
@@ -17,7 +17,8 @@ when 'video'
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
%>
|
20
|
-
<div class="carousel-item__content"
|
20
|
+
<div class="<%= promethee_class_for component %> carousel-item__content"
|
21
|
+
id="<%= promethee_id_for component %>">
|
21
22
|
<% if iframe_src.present? %>
|
22
23
|
<div class="embed-responsive embed-responsive-16by9">
|
23
24
|
<iframe frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="allowfullscreen" src="<%= iframe_src %>"></iframe>
|
@@ -12,7 +12,8 @@
|
|
12
12
|
headerRow = rows.shift
|
13
13
|
%>
|
14
14
|
|
15
|
-
<div
|
15
|
+
<div class="<%= promethee_class_for(component) %>"
|
16
|
+
id="<%= promethee_id_for component %>">
|
16
17
|
<% unless headerRow.nil? %>
|
17
18
|
<div class="table-responsive">
|
18
19
|
<table class="table">
|
@@ -1,7 +1,8 @@
|
|
1
1
|
<%
|
2
2
|
body = component[:attributes].dig(:body, :value)&.to_s&.html_safe
|
3
3
|
%>
|
4
|
-
<div
|
4
|
+
<div class="<%= promethee_class_for component %>"
|
5
|
+
id="<%= promethee_id_for component %>">
|
5
6
|
<div class="promethee__component__row">
|
6
7
|
<div class="promethee__component__content">
|
7
8
|
<%= body %>
|
@@ -14,7 +14,8 @@ else
|
|
14
14
|
iframe_src = url
|
15
15
|
end
|
16
16
|
%>
|
17
|
-
<div
|
17
|
+
<div class="<%= promethee_class_for component %>"
|
18
|
+
id="<%= promethee_id_for component %>">
|
18
19
|
<div class="promethee__component__row">
|
19
20
|
<div class="promethee__component__content">
|
20
21
|
<div class="embed-responsive embed-responsive-16by9">
|
@@ -3,7 +3,7 @@ module Promethee::Rails::Helper
|
|
3
3
|
render partial: 'promethee/show', locals: { master_data: data, localization_data: options[:l] }
|
4
4
|
end
|
5
5
|
|
6
|
-
def promethee_class_for
|
6
|
+
def promethee_class_for(component, *modifiers)
|
7
7
|
base = "promethee__component"
|
8
8
|
component_base = "#{base}__#{component[:type]}"
|
9
9
|
|
@@ -14,6 +14,10 @@ module Promethee::Rails::Helper
|
|
14
14
|
].flatten.select(&:present?).join ' '
|
15
15
|
end
|
16
16
|
|
17
|
+
def promethee_id_for(component)
|
18
|
+
"promethee-component-#{component[:id]}"
|
19
|
+
end
|
20
|
+
|
17
21
|
def promethee_component_partials
|
18
22
|
promethee_partials_for 'components/*/_edit.*.html.erb'
|
19
23
|
end
|
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: 4.1.
|
4
|
+
version: 4.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sébastien Gaya
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2020-
|
17
|
+
date: 2020-09-02 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|