promethee 1.11.4 → 1.11.5

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: 5e4777f276003632fb5df34895ff756832366df439ece9601be46fe6104e749b
4
- data.tar.gz: 816bf889a628b44010f456df02cde0e77f4bcd77f79468bc6a89f7ed296922fd
3
+ metadata.gz: f08a1e765c3e98b32234c3e28f8c33048cfbad860b3428e74dc69131972d8a0a
4
+ data.tar.gz: acf74b168c9beab787de75817a2111318099a36a51ee20426a519d6cf8eb8738
5
5
  SHA512:
6
- metadata.gz: 83505d7b7db4fd9accfe9e67495507456d82a2c7782fab1ae7dcff210422771a5b636ebcb33754e780d0f6227349b72e0f0774cde6e0fc1fc91ab071d38731cb
7
- data.tar.gz: ebd8d6657515e4d3928f1c6fb746e9e675fe52807e0f06123f8306b693b9f3b10d46a36cbbec45a082a2188f839e6415c4f072425ef163e9114543dd42f2fc1a
6
+ metadata.gz: 5f927e90501428aba2e576269e7bbb4d1f6ef499e4edb9315bbcd67b70d5d4caa45fa53f4d0f4e40188b90808b181e7c332c0a166294e819d2c57ed1f7c9b3d8
7
+ data.tar.gz: daf4fcb90e7fe2f777ae112e60586408819f28dc1a64fdd610e2ee194c67cbc4bc9d2c069083535ebe476d011be7647cc5133e59b40f99291f02916eee910cbe
@@ -7,7 +7,7 @@ module PrometheeData
7
7
  super(value)
8
8
  end
9
9
 
10
- # Getters and setters to get PAGE Title & Description
10
+ # Getters and setters to get PAGE Title, Description & Thumbnail
11
11
  def promethee_data_page_title
12
12
  data['attributes']['searchable_title']
13
13
  rescue
@@ -28,6 +28,12 @@ module PrometheeData
28
28
  self.data['attributes']['searchable_description'] = value
29
29
  end
30
30
 
31
+ def promethee_data_page_thumbnail
32
+ ActiveStorage::Blob.find_by(id: data['attributes']['thumbnail']['id'])
33
+ rescue
34
+ nil
35
+ end
36
+
31
37
  # Getters to get TRANSLATION Title & Description
32
38
  def promethee_data_translation_title
33
39
  data['components'].first['attributes']['searchable_title']
@@ -10,6 +10,10 @@
10
10
  attributes: {
11
11
  searchable_title: 'New page',
12
12
  searchable_description: '',
13
+ thumbnail: {
14
+ id: undefined,
15
+ name: ''
16
+ },
13
17
  stylesheets: '',
14
18
  javascripts: ''
15
19
  },
@@ -10,6 +10,8 @@
10
10
  </div>
11
11
 
12
12
  <%= render 'promethee/edit/inspect.advanced' %>
13
+ <promethee-uploader ng-model="promethee.inspected.attributes.thumbnail" label="Thumbnail" limits="'.jpg,.jpeg,.png,.gif'"></promethee-uploader>
14
+
13
15
  <div class="form-group">
14
16
  <label class="label-control">Stylesheets</label>
15
17
  <textarea class="form-control" ng-model="promethee.inspected.attributes.stylesheets"></textarea>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.11.4'
3
+ VERSION = '1.11.5'
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.4
4
+ version: 1.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Gaya