promethee 1.11.12 → 1.11.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3aa8fec7351cef93d9eb3285d89fb84f3dcdc3c18a4235442d1cebcc94db64fc
4
- data.tar.gz: e562b5f2aa727d2af75ec90c5b754849b45ec4f6a07781fc59aeedb5ae8ec90d
3
+ metadata.gz: 0ea9f31873a2f1c6582ef188bc4ce0c70dedaea43e455e8e975fcfe271535e50
4
+ data.tar.gz: 5cc5af9df175d9a16cd03f50afe1afdd9914976e728ef8ed80c627af94928eb5
5
5
  SHA512:
6
- metadata.gz: fc75fe13ddc15055abacc4f40250528b6ce5b79b9b6993f94b9e5d08d09014f24aa942326ff74a515d7d744a0e82ddfd759abf8e021ba1c272e96849cc26324a
7
- data.tar.gz: e6be9ee2af0283803ecfabe50c044647a6155666dbdd0a7555da863c148c5b42d80f5794a6a9a19362571494a762011b25c96008b57f92340869d8f0de8db523
6
+ metadata.gz: 2404427cfcb2cf8b30654d072605f9c9cc53814828aeed6c897e57bc6d4a5fe5724088125eb073facc356496ae42d477e275fb67f7bfcd88af4a16c09cc78a72
7
+ data.tar.gz: 9cebfcf878829b76133a8bb8fb68d5d1d83f8ca40ec1ccd715620bc9b2b97e10f28229e7f8715212fa5f649804ee9f151e51cee74d92b20426418a4cc4b09446
@@ -13,7 +13,8 @@
13
13
  name: ""
14
14
  },
15
15
  searchable_title: "",
16
- searchable_body: ""
16
+ searchable_body: "",
17
+ special_question: false
17
18
  }
18
19
  }
19
20
  })
@@ -10,4 +10,9 @@
10
10
  <label class="label-control">Body</label>
11
11
  <summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.searchable_body"></summernote>
12
12
  </div>
13
+
14
+ <div class="form-group">
15
+ <input ng-model="promethee.inspected.attributes.special_question" type="checkbox" />
16
+ <label class="label-control"> Special question</label>
17
+ </div>
13
18
  </script>
@@ -1,7 +1,7 @@
1
1
  <script type="text/ng-template" id="promethee/components/faq_item/edit/move">
2
2
  <%= render 'promethee/edit/move.header', type: 'faq_item' %>
3
3
  <div class="header">FAQ Item</div>
4
- <div class="row">
4
+ <div class="row promethee-edit__faq_item__content{{ component.attributes.special_question ? '--special' : '' }}">
5
5
  <div class="col-9 col-xs-9">
6
6
  <h4>{{component.attributes.searchable_title}}</h4>
7
7
  <div ng-bind-html="component.attributes.searchable_body | htmlSafe"></div>
@@ -1,6 +1,7 @@
1
1
  <%
2
2
  title = component[:attributes][:searchable_title].to_s
3
3
  body = component[:attributes][:searchable_body].to_s
4
+ special_question = component[:attributes][:special_question]
4
5
 
5
6
  image = component[:attributes][:image]
6
7
  if image && image[:id]
@@ -8,24 +9,26 @@ if image && image[:id]
8
9
  end
9
10
  %>
10
11
 
11
- <h4 data-toggle="collapse"
12
- data-target="#collapse-faq-<%= component[:id] %>"
13
- aria-expanded="false"
14
- aria-controls="collapse-faq-<%= component[:id] %>">
15
- <%= title %>
16
- </h4>
12
+ <div class="<%= promethee_class_for component %> <%= 'promethee__component__faq_item--special' if special_question %>">
13
+ <h4 data-toggle="collapse"
14
+ data-target="#collapse-faq-<%= component[:id] %>"
15
+ aria-expanded="false"
16
+ aria-controls="collapse-faq-<%= component[:id] %>">
17
+ <%= title %>
18
+ </h4>
17
19
 
18
- <div class="<%= promethee_class_for component %> collapse" id="collapse-faq-<%= component[:id] %>">
19
- <% if image_blob %>
20
- <div class="row ">
21
- <div class="col-9 col-xs-9">
22
- <%= body.html_safe %>
20
+ <div class="collapse" id="collapse-faq-<%= component[:id] %>">
21
+ <% if image_blob %>
22
+ <div class="row ">
23
+ <div class="col-9 col-xs-9">
24
+ <%= body.html_safe %>
25
+ </div>
26
+ <div class="col-3 col-xs-3">
27
+ <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', caption: '' %>
28
+ </div>
23
29
  </div>
24
- <div class="col-3 col-xs-3">
25
- <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', caption: '' %>
26
- </div>
27
- </div>
28
- <% else %>
29
- <%= body.html_safe %>
30
- <% end %>
30
+ <% else %>
31
+ <%= body.html_safe %>
32
+ <% end %>
33
+ </div>
31
34
  </div>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.11.12'
3
+ VERSION = '1.11.13'
4
4
  end
5
5
  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: 1.11.12
4
+ version: 1.11.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Gaya