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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f08a1e765c3e98b32234c3e28f8c33048cfbad860b3428e74dc69131972d8a0a
|
4
|
+
data.tar.gz: acf74b168c9beab787de75817a2111318099a36a51ee20426a519d6cf8eb8738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 &
|
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,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>
|