promethee 4.1.15 → 4.1.16

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
  SHA256:
3
- metadata.gz: 1e57882a0cb77abd8067687f897b6e06db45a0cb91daebfb46418fa225c72a36
4
- data.tar.gz: 0050dcff099a4a343b347cc1e89c327bbf18c9ad6ec4cfbc7ddfa52507e11903
3
+ metadata.gz: 310831237cbf7ee4493331c7bd1101275bc33c5ab5f34a6742104f9bdc4a6da8
4
+ data.tar.gz: efc159fd105c74f764acd164a69e72753a1b581f76e1e08e22b7ee020ec1a9dc
5
5
  SHA512:
6
- metadata.gz: d30d4542b80ae01b5291f476d8288ac95530562b88869723d9561f3785a2d63561e69327d2931c0f237ee369422b351964d24f13f69ffb06bcdd8dc81fe85edf
7
- data.tar.gz: 121d035c280c9d759ba01340df50839135e6562a73950c1c57ee39c440fd6c5e1070e4279bb1e0700b89c3bc7bea688c5f1c6f67ea16d755c92ca050bc0f1bd5
6
+ metadata.gz: 42ef37255720cc041e58f3092ba3731a97a58b80196e7bee290839c64f0e7b9222bc0d0aa8c56e3f45b40d4190da0bf03533a4152f873d9a29fade61cda869b7
7
+ data.tar.gz: d8aadec0f132cca1fcf21e1dad8ce35f8221c63807131ff76910a726ad547a100c433c1068bb37b3a91cb109ac6ea196a4ba021dcd0bbd02d4c86833b9d3a386
@@ -24,7 +24,7 @@ end
24
24
  <iframe frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="allowfullscreen" src="<%= iframe_src %>"></iframe>
25
25
  </div>
26
26
  <% elsif image_blob.present? %>
27
- <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', caption: caption %>
27
+ <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', title: '', caption: caption %>
28
28
  <% end %>
29
29
  <div class="collection-item__content__caption">
30
30
  <%= caption %>
@@ -19,7 +19,7 @@ image_blob = blob_from_data component[:attributes].dig(:image, :value)
19
19
  <% if image_blob %>
20
20
  <div class="row ">
21
21
  <div class="col-3 col-xs-3">
22
- <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', caption: '' %>
22
+ <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', title: '', caption: '' %>
23
23
  </div>
24
24
  <div class="col-9 col-xs-9">
25
25
  <%= body %>
@@ -28,6 +28,12 @@
28
28
  translatable: true,
29
29
  type: 'string',
30
30
  value: ''
31
+ },
32
+ title: {
33
+ searchable: true,
34
+ translatable: true,
35
+ type: 'string',
36
+ value: ''
31
37
  }
32
38
  }
33
39
  }
@@ -12,5 +12,10 @@
12
12
  <label class="label-control">Alt</label>
13
13
  <input class="form-control" ng-model="promethee.inspected.attributes.alt.value">
14
14
  </div>
15
+
16
+ <div class="form-group">
17
+ <label class="label-control">Title</label>
18
+ <input class="form-control" ng-model="promethee.inspected.attributes.title.value">
19
+ </div>
15
20
  </div>
16
21
  </script>
@@ -37,4 +37,17 @@
37
37
  </div>
38
38
  </div>
39
39
  </div>
40
+
41
+ <div class="row" ng-show="master.attributes.title.value || frozen_component.attributes.title.value">
42
+ <div class="col-md-6">
43
+ <b>Title</b>
44
+ <p>{{master.attributes.title.value}}</p>
45
+ </div>
46
+ <div class="col-md-6">
47
+ <div class="form-group">
48
+ <b>Title</b>
49
+ <input class="form-control" ng-model="component.attributes.title.value" type="text">
50
+ </div>
51
+ </div>
52
+ </div>
40
53
  </script>
@@ -2,13 +2,14 @@
2
2
  blob = blob_from_data component[:attributes].dig(:image, :value)
3
3
 
4
4
  alt = component[:attributes].dig(:alt, :value)&.to_s
5
+ title = component[:attributes].dig(:title, :value)&.to_s
5
6
  caption = component[:attributes].dig(:caption, :value)&.to_s
6
7
  %>
7
8
  <figure class="<%= promethee_class_for component %>"
8
9
  id="<%= promethee_id_for component %>">
9
10
  <div class="promethee__component__row">
10
11
  <div class="promethee__component__content">
11
- <%= render 'promethee/show/image.srcset', blob: blob, alt: alt, caption: caption if blob %>
12
+ <%= render 'promethee/show/image.srcset', blob: blob, alt: alt, title: title, caption: caption if blob %>
12
13
  <% unless caption.blank? %>
13
14
  <figcaption>
14
15
  <%= caption %>
@@ -24,7 +24,7 @@ end
24
24
  <iframe frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="allowfullscreen" src="<%= iframe_src %>"></iframe>
25
25
  </div>
26
26
  <% elsif image_blob.present? %>
27
- <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', caption: caption, image_zoomable: false %>
27
+ <%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', title: '', caption: caption, image_zoomable: false %>
28
28
  <% end %>
29
29
  <div class="carousel-item__content__caption">
30
30
  <%= caption %>
@@ -14,7 +14,8 @@
14
14
  "
15
15
  width="<%= image_width %>"
16
16
  sizes="100vw"
17
- alt="<%= alt.html_safe %>"
17
+ alt="<%= j alt %>"
18
+ title="<%= j title %>"
18
19
  class="img-fluid img-responsive"
19
20
  >
20
21
 
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '4.1.15'
3
+ VERSION = '4.1.16'
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: 4.1.15
4
+ version: 4.1.16
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-10-02 00:00:00.000000000 Z
17
+ date: 2020-11-06 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails
@@ -504,7 +504,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
504
504
  - !ruby/object:Gem::Version
505
505
  version: '0'
506
506
  requirements: []
507
- rubygems_version: 3.1.2
507
+ rubygems_version: 3.1.4
508
508
  signing_key:
509
509
  specification_version: 4
510
510
  summary: Bring fire to your page