promethee 1.3.17 → 1.3.18

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
  SHA1:
3
- metadata.gz: 6cba4b8fa6489c5a592da1f5cbd2ebe9bdb0dbb4
4
- data.tar.gz: 48895b49849938f46af4f605cac3aa1721f63147
3
+ metadata.gz: cfca3684db6b757e855b0835be693967e87df03b
4
+ data.tar.gz: ddb1792398d2b192bf77a54ac1f962fe90e8d9ec
5
5
  SHA512:
6
- metadata.gz: 7b5cd7e6ea1b876361b845ebd2617836dba50aa4e882515d082ede42b43c044a215dba3cbbbeb1875f1cc6ada82b930d14e741bfe45b9a4688b13d7409ae01e9
7
- data.tar.gz: 50b04925580202732a3dc5f37012240f7b16e73ef50c762527c1d4de2d3a7259fef2175e232d046a3509054453d82a74d39f6171beaf8ff239ee871c0372fa8b
6
+ metadata.gz: 2bdad28ae4c697c11c9318c83bed873cdcfdb7d5138fc99626319507aee39629d3017360bb60f02e6213005d1b367a1c4ca766b6fef5e13610b5a759b51141e4
7
+ data.tar.gz: d1825face076d50e89db6e3831c201567f9242c56dd51afa13c91ea8b179387c13c193b0553100297f871152ce8118e2f6a77e6b929a4d907e82a5c563ad4f6c
@@ -1,18 +1,28 @@
1
1
  <script type="text/ng-template" id="promethee/components/image/localize">
2
- <hr>
3
- <div class="row">
4
- <div class="col-md-6">
5
- <img ng-src="{{component.master.attributes.src}}" class="img-responsive" />
6
- <b>Alt</b>
7
- <p>{{component.master.attributes.alt}}</p>
8
- <b>Description</b>
9
- <p>{{component.master.attributes.caption | htmlSafe}}</p>
10
- </div>
11
- <div class="col-md-6">
12
- <b>Alt</b>
13
- <input ng-model="component.attributes.alt" type="text" class="form-control">
14
- <b>Description</b>
15
- <summernote config="options" ng-model="component.attributes.caption"></summernote>
2
+ <div ng-show="component.master.attributes.alt || component.master.attributes.caption">
3
+ <hr>
4
+ <div class="row">
5
+ <div class="col-md-6">
6
+ <img ng-src="{{component.master.attributes.src}}" class="img-responsive" />
7
+ <div ng-show="component.master.attributes.alt">
8
+ <b>Alt</b>
9
+ <p>{{component.master.attributes.alt}}</p>
10
+ </div>
11
+ <div ng-show="component.master.attributes.caption">
12
+ <b>Description</b>
13
+ <p>{{component.master.attributes.caption | htmlSafe}}</p>
14
+ </div>
15
+ </div>
16
+ <div class="col-md-6">
17
+ <div ng-show="component.attributes.alt">
18
+ <b>Alt</b>
19
+ <input ng-model="component.attributes.alt" type="text" class="form-control">
20
+ </div>
21
+ <div ng-show="component.attributes.caption">
22
+ <b>Description</b>
23
+ <summernote config="options" ng-model="component.attributes.caption"></summernote>
24
+ </div>
25
+ </div>
16
26
  </div>
17
27
  </div>
18
28
  </script>
@@ -4,14 +4,18 @@
4
4
  <div class="col-md-6">
5
5
  <b>Page title</b>
6
6
  <p>{{component.master.attributes.title}}</p><br>
7
- <b>Page description</b>
8
- <p>{{component.master.attributes.description}}</p>
7
+ <div ng-show="component.master.attributes.description">
8
+ <b>Page description</b>
9
+ <p>{{component.master.attributes.description}}</p>
10
+ </div>
9
11
  </div>
10
12
  <div class="col-md-6">
11
13
  <b>Page title</b>
12
14
  <input ng-model="component.attributes.title" type="text" class="form-control"><br>
13
- <b>Page description</b>
14
- <textarea ng-model="component.attributes.description" type="text" class="form-control"></textarea>
15
+ <div ng-show="component.attributes.description">
16
+ <b>Page description</b>
17
+ <textarea ng-model="component.attributes.description" type="text" class="form-control"></textarea>
18
+ </div>
15
19
  </div>
16
20
  </div>
17
21
  </script>
@@ -1,11 +1,13 @@
1
1
  <script type="text/ng-template" id="promethee/components/text/localize">
2
- <hr>
3
- <div class="row">
4
- <div class="col-md-6">
5
- <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.body | htmlSafe"></div>
6
- </div>
7
- <div class="col-md-6">
8
- <summernote config="options" ng-model="component.attributes.body"></summernote>
2
+ <div ng-show="component.master.attributes.body">
3
+ <hr>
4
+ <div class="row">
5
+ <div class="col-md-6">
6
+ <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.body | htmlSafe"></div>
7
+ </div>
8
+ <div class="col-md-6">
9
+ <summernote config="options" ng-model="component.attributes.body"></summernote>
10
+ </div>
9
11
  </div>
10
12
  </div>
11
13
  </script>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.3.17'
3
+ VERSION = '1.3.18'
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.3.17
4
+ version: 1.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos