promethee 4.1.7 → 4.1.8
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 +4 -4
- data/app/views/promethee/_localize.html.erb +9 -1
- data/app/views/promethee/components/aside/_localize.html.erb +2 -2
- data/app/views/promethee/components/blockquote/_localize.html.erb +2 -2
- data/app/views/promethee/components/collection_item/_localize.html.erb +2 -2
- data/app/views/promethee/components/cover/_localize.html.erb +4 -4
- data/app/views/promethee/components/faq_item/_localize.html.erb +1 -1
- data/app/views/promethee/components/image/_localize.html.erb +3 -3
- data/app/views/promethee/components/page/_localize.html.erb +1 -1
- data/app/views/promethee/components/slider_item/_localize.html.erb +2 -2
- data/app/views/promethee/components/table_cell/_localize.html.erb +8 -10
- data/app/views/promethee/components/text/_localize.html.erb +1 -1
- data/app/views/promethee/components/video/_localize.html.erb +1 -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: 90a33ce9e6312e37485cedecf012ec40d94192351e6e401167e32422eef6e190
|
4
|
+
data.tar.gz: 9dd9dd15ca827d6b5ddca45fe561b97b9bd866160c0e2ae2e159ba12fe0bf71d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 392c05d4d2adafd32d51056c221d3a8c9f690e2a7c46c1b57ebdae481667dce00cf0790841a9db746ec3bec9c4be2200e81720d592b3aa5ac753480b358c761f
|
7
|
+
data.tar.gz: 65c267a80b55d9dd606f49d4980f38ea875c13a2d69e92587407093b40e399d8d87857e01e9ec972ec1db343ad7c4e1891c53e08ed1c3e895fb6588ef0d08045
|
@@ -53,11 +53,17 @@ promethee_masters_multiple = Promethee::Data::MastersMultiple.new master_data, o
|
|
53
53
|
$scope.data = <%= promethee_data.to_json.html_safe %>;
|
54
54
|
$scope.masters = mastersMultiple;
|
55
55
|
$scope.masters.set(<%= promethee_masters_multiple.to_json.html_safe %>);
|
56
|
+
|
56
57
|
$scope.$watch('data', function(new_val, old_val) {
|
57
58
|
if (old_val != new_val) {
|
58
59
|
window.warnBeforeUnload.lock();
|
59
60
|
}
|
60
61
|
}, true);
|
62
|
+
|
63
|
+
$scope.freezeData = function (data) {
|
64
|
+
return JSON.parse(JSON.stringify(data));
|
65
|
+
};
|
66
|
+
|
61
67
|
$scope.copyTranslations = function(event) {
|
62
68
|
event.preventDefault();
|
63
69
|
if (confirm('Warning: this will overwrite every translations!')) {
|
@@ -97,7 +103,9 @@ promethee_masters_multiple = Promethee::Data::MastersMultiple.new master_data, o
|
|
97
103
|
ng-controller="PrometheeLocalizerController as prometheeLocalizerController">
|
98
104
|
|
99
105
|
<script type="text/ng-template" id="promethee/localize/component">
|
100
|
-
<span class="hidden d-none"
|
106
|
+
<span class="hidden d-none" ng-init="frozen_component = freezeData(component)">
|
107
|
+
{{ master = masters.masterForComponent(component) }}
|
108
|
+
</span>
|
101
109
|
<ng-include src="'promethee/components/' + component.type + '/localize'"></ng-include>
|
102
110
|
</script>
|
103
111
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
|
17
|
-
<div class="row" ng-show="master.attributes.collapsed_content.value">
|
17
|
+
<div class="row" ng-show="master.attributes.collapsed_content.value || frozen_component.attributes.collapsed_content.value">
|
18
18
|
<div class="col-md-6">
|
19
19
|
<b>Aside collapsed content</b>
|
20
20
|
<div ng-bind-html="master.attributes.collapsed_content.value | htmlSafe"></div>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</div>
|
28
28
|
</div>
|
29
29
|
|
30
|
-
<div class="row" ng-show="master.attributes.
|
30
|
+
<div class="row" ng-show="master.attributes.open_label.value || frozen_component.attributes.open_label.value">
|
31
31
|
<div class="col-md-6">
|
32
32
|
<b>Button label</b>
|
33
33
|
<div ng-bind-html="master.attributes.open_label.value | htmlSafe"></div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/blockquote/localize">
|
2
|
-
<div ng-show="master.attributes.body.value">
|
2
|
+
<div ng-show="master.attributes.body.value || frozen_component.attributes.body.value">
|
3
3
|
<hr>
|
4
4
|
<div class="row">
|
5
5
|
<div class="col-md-6">
|
@@ -15,7 +15,7 @@
|
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
|
18
|
-
<div class="row" ng-show="master.attributes.author.value">
|
18
|
+
<div class="row" ng-show="master.attributes.author.value || frozen_component.attributes.author.value">
|
19
19
|
<div class="col-md-6">
|
20
20
|
<b>Author</b>
|
21
21
|
<p>{{master.attributes.author.value}}</p>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/collection_item/localize">
|
2
|
-
<div ng-show="master.attributes.caption.value
|
2
|
+
<div ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value || master.attributes.media_type.value == 'video'">
|
3
3
|
<hr>
|
4
4
|
|
5
|
-
<div class="row" ng-show="master.attributes.caption.value
|
5
|
+
<div class="row" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
6
6
|
<div class="col-md-6">
|
7
7
|
<b>Collection Item Caption</b>
|
8
8
|
<div class="promethee-edit__wrapper" ng-bind-html="master.attributes.caption.value | htmlSafe"></div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/cover/localize">
|
2
|
-
<div ng-show="master.attributes.surtitle.value || master.attributes.title.value || master.attributes.subtitle.value">
|
2
|
+
<div ng-show="master.attributes.surtitle.value || frozen_component.attributes.surtitle.value || master.attributes.title.value || frozen_component.attributes.title.value || master.attributes.subtitle.value || frozen_component.attributes.subtitle.value">
|
3
3
|
<hr>
|
4
4
|
|
5
5
|
<div class="row">
|
@@ -8,7 +8,7 @@
|
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
|
11
|
-
<div class="row" ng-show="master.attributes.surtitle.value">
|
11
|
+
<div class="row" ng-show="master.attributes.surtitle.value || frozen_component.attributes.surtitle.value">
|
12
12
|
<div class="col-md-6">
|
13
13
|
<b>Surtitle</b>
|
14
14
|
<p>{{master.attributes.surtitle.value}}</p>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
</div>
|
22
22
|
</div>
|
23
23
|
|
24
|
-
<div class="row" ng-show="master.attributes.title.value">
|
24
|
+
<div class="row" ng-show="master.attributes.title.value || frozen_component.attributes.title.value">
|
25
25
|
<div class="col-md-6">
|
26
26
|
<b>Title</b>
|
27
27
|
<p>{{master.attributes.title.value}}</p>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
|
37
|
-
<div class="row" ng-show="master.attributes.subtitle.value">
|
37
|
+
<div class="row" ng-show="master.attributes.subtitle.value || frozen_component.attributes.subtitle.value">
|
38
38
|
<div class="col-md-6">
|
39
39
|
<b>Subtitle</b>
|
40
40
|
<p>{{master.attributes.subtitle.value}}</p>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/image/localize">
|
2
|
-
<div ng-show="master.attributes.alt.value || master.attributes.caption.value">
|
2
|
+
<div ng-show="master.attributes.alt.value || frozen_component.attributes.alt.value || master.attributes.caption.value || frozen_component.attributes.caption.value">
|
3
3
|
<hr>
|
4
4
|
|
5
5
|
<div class="row">
|
@@ -11,7 +11,7 @@
|
|
11
11
|
</div>
|
12
12
|
</div>
|
13
13
|
|
14
|
-
<div class="row" ng-show="master.attributes.caption.value">
|
14
|
+
<div class="row" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
15
15
|
<div class="col-md-6">
|
16
16
|
<b>Caption</b>
|
17
17
|
<p>{{master.attributes.caption.value}}</p>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
</div>
|
26
26
|
</div>
|
27
27
|
|
28
|
-
<div class="row" ng-show="master.attributes.alt.value">
|
28
|
+
<div class="row" ng-show="master.attributes.alt.value || frozen_component.attributes.alt.value">
|
29
29
|
<div class="col-md-6">
|
30
30
|
<b>Alt</b>
|
31
31
|
<p>{{master.attributes.alt.value}}</p>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
|
18
|
-
<div class="row" ng-show="master.attributes.description.value">
|
18
|
+
<div class="row" ng-show="master.attributes.description.value || frozen_component.attributes.description.value">
|
19
19
|
<div class="col-md-6">
|
20
20
|
<div>
|
21
21
|
<b>Page description</b>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/slider_item/localize">
|
2
|
-
<div ng-show="master.attributes.caption.value
|
2
|
+
<div ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value || master.attributes.media_type.value == 'video'">
|
3
3
|
<hr>
|
4
4
|
|
5
|
-
<div class="row" ng-show="master.attributes.caption.value
|
5
|
+
<div class="row" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
6
6
|
<div class="col-md-6">
|
7
7
|
<b>Slider Item Caption</b>
|
8
8
|
<div class="promethee-edit__wrapper" ng-bind-html="master.attributes.caption.value | htmlSafe"></div>
|
@@ -1,14 +1,12 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/table_cell/localize">
|
2
|
-
<div ng-show="master.attributes.text.value
|
3
|
-
<div class="
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
<input class="form-control" ng-model="component.attributes.text.value" type="text">
|
11
|
-
</div>
|
2
|
+
<div class="row mt-2" ng-show="master.attributes.text.value || frozen_component.attributes.text.value">
|
3
|
+
<div class="col-md-6">
|
4
|
+
<b>Text</b>
|
5
|
+
<p>{{ master.attributes.text.value }}</p>
|
6
|
+
</div>
|
7
|
+
<div class="col-md-6">
|
8
|
+
<b>Text</b>
|
9
|
+
<input class="form-control" ng-model="component.attributes.text.value" type="text">
|
12
10
|
</div>
|
13
11
|
</div>
|
14
12
|
</script>
|
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.8
|
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-08-24 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|