promethee 1.4.9 → 1.4.10

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
  SHA1:
3
- metadata.gz: ac60057af5f7f5ca8f2a25a6778d227441b096bf
4
- data.tar.gz: acdd6884741a57c9acaa404209ddc0ed4cc9e90c
3
+ metadata.gz: fc7e58f3664530c0d67ed60fd10af89f8367be09
4
+ data.tar.gz: 5f0e7ef1acc0494ad8ffca2a95a70d4c83129187
5
5
  SHA512:
6
- metadata.gz: 9afc94bb2445d0651b455540182c74325504173a7fa4b66dcc2acc667393d02540720a867e7a3518ff79457197c0f76620627464088be593a908fa781e9d451c
7
- data.tar.gz: e2a018f028e129536c74ea002d3a171d556569b11ae4e1b3b1a66b915a0d8c8cda6fd811b1af40b3800c764bc91aaadebda99d35b0d0ff45949666ce7aa70493
6
+ metadata.gz: db42e5435851d64da37a8d2221ddf12cd1a3ee18dd29cb85a11c7f1151a7fe9f22eab0630a9781d95704c39678abaa7d766df9388ad8c46c0ba7d5b868941a91
7
+ data.tar.gz: 1eabc3fa90bd07de4a71a30b09118e8173818384ca8ceec7a3790bcc2e86911710c2b8e2f00f32983725b5bd817c1fd339119e5b6a9e57e15b9bedd674f723a9
@@ -6,7 +6,7 @@
6
6
  data: {
7
7
  type: 'aside',
8
8
  attributes: {
9
- visible_content: '',
9
+ visible_content: '<p>Edit me</p>',
10
10
  collapsed_content: ''
11
11
  },
12
12
  children: []
@@ -1,12 +1,12 @@
1
1
  <script type="text/ng-template" id="promethee/components/aside/edit/move">
2
2
  <%= render 'promethee/edit/move.header', type: 'aside' %>
3
- <aside ng-if="component.attributes.collapsed_content">
4
- {{component.attributes.visible_content | htmlSafe}}
3
+ <aside ng-show="component.attributes.collapsed_content" ng-init="collapsed = true">
4
+ <div ng-bind-html="component.attributes.visible_content | htmlSafe"></div>
5
5
  <div ng-hide="collapsed" ng-bind-html="component.attributes.collapsed_content | htmlSafe"></div>
6
- <a data-toggle="collapse" href="#aside-collapse-{{component.id}}">{/a>
6
+ <a class="btn btn-default btn-block" ng-click="collapsed = !collapsed">{{collapsed ? 'Read more' : 'Reduce'}}</a>
7
7
  </aside>
8
8
 
9
- <aside ng-if="!component.attributes.collapsed_content" ng-bind-html="component.attributes.visible_content"></aside>
9
+ <aside ng-hide="component.attributes.collapsed_content" ng-bind-html="component.attributes.visible_content | htmlSafe"></aside>
10
10
  </div>
11
11
  </div>
12
12
  </script>
@@ -1,3 +1,29 @@
1
1
  <script type="text/ng-template" id="promethee/components/aside/localize">
2
+ <hr>
2
3
 
4
+ <div class="row">
5
+ <div class="col-md-6">
6
+ <b>Aside visible content</b>
7
+ <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.visible_content | htmlSafe"></div>
8
+ </div>
9
+ <div class="col-md-6">
10
+ <div class="form-group">
11
+ <label class="label-control">Aside visible content</label>
12
+ <input class="form-control" ng-model="component.attributes.visible_content" type="text">
13
+ </div>
14
+ </div>
15
+ </div>
16
+
17
+ <div class="row" ng-show="component.master.attributes.collapsed_content">
18
+ <div class="col-md-6">
19
+ <b>Aside collapsed content</b>
20
+ <p>{{component.master.attributes.collapsed_content}}</p>
21
+ </div>
22
+ <div class="col-md-6">
23
+ <div class="form-group">
24
+ <label class="label-control">Aside collapsed content</label>
25
+ <input class="form-control" ng-model="component.attributes.collapsed_content" type="text">
26
+ </div>
27
+ </div>
28
+ </div>
3
29
  </script>
@@ -1,3 +1,17 @@
1
+ <%
2
+ visible_content = component[:attributes][:visible_content].to_s
3
+ collapsed_content = component[:attributes][:collapsed_content].to_s
4
+ %>
5
+
1
6
  <aside class="<%= promethee_class_for component %>">
2
- <%= render 'promethee/show/components', components: component[:children] %>
7
+ <%= visible_content.html_safe %>
8
+
9
+ <% if collapsed_content.present? %>
10
+ <div class="collapse" id="aside-collapse-<%= component[:id] %>">
11
+ <%= collapsed_content.html_safe %>
12
+ </div>
13
+ <div>
14
+ <a href="#aside-collapse-<%= component[:id] %>" data-toggle="collapse" onclick="this.textContent = $(this.getAttribute('href')).is(':visible') ? 'Read more' : 'Reduce'">Read more</a>
15
+ </div>
16
+ <% end %>
3
17
  </aside>
@@ -1,11 +1,50 @@
1
1
  <script type="text/ng-template" id="promethee/components/cover/localize">
2
- <div class="row">
3
- <div class="col-md-6">
4
- <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.body | htmlSafe"></div>
2
+ <div ng-show="component.master.attributes.surtitle || component.master.attributes.title || component.master.attributes.subtitle">
3
+ <hr>
4
+
5
+ <div class="row">
6
+ <div class="col-md-6">
7
+ <img ng-src="/promethee/blob/{{component.attributes.blob.id}}" class="img-responsive">
8
+ </div>
5
9
  </div>
6
- <div class="col-md-6">
7
- <summernote config="options" ng-model="component.attributes.body"></summernote>
10
+
11
+ <div class="row" ng-show="component.master.attributes.surtitle">
12
+ <div class="col-md-6">
13
+ <b>Surtitle</b>
14
+ <p>{{component.master.attributes.surtitle}}</p>
15
+ </div>
16
+ <div class="col-md-6">
17
+ <div class="form-group">
18
+ <label class="label-control">Surtitle</label>
19
+ <input class="form-control" ng-model="component.attributes.surtitle" type="text">
20
+ </div>
21
+ </div>
22
+ </div>
23
+
24
+ <div class="row" ng-show="component.master.attributes.title">
25
+ <div class="col-md-6">
26
+ <b>Title</b>
27
+ <p>{{component.master.attributes.title}}</p>
28
+ </div>
29
+ <div class="col-md-6">
30
+ <div class="form-group">
31
+ <label class="label-control">Title</label>
32
+ <input class="form-control" ng-model="component.attributes.title" type="text">
33
+ </div>
34
+ </div>
35
+ </div>
36
+
37
+ <div class="row" ng-show="component.master.attributes.subtitle">
38
+ <div class="col-md-6">
39
+ <b>Subtitle</b>
40
+ <p>{{component.master.attributes.subtitle}}</p>
41
+ </div>
42
+ <div class="col-md-6">
43
+ <div class="form-group">
44
+ <label class="label-control">Subtitle</label>
45
+ <input class="form-control" ng-model="component.attributes.subtitle" type="text">
46
+ </div>
47
+ </div>
8
48
  </div>
9
49
  </div>
10
- <hr>
11
50
  </script>
@@ -1,26 +1,35 @@
1
1
  <script type="text/ng-template" id="promethee/components/image/localize">
2
2
  <div ng-show="component.master.attributes.alt || component.master.attributes.caption">
3
3
  <hr>
4
+
4
5
  <div class="row">
5
6
  <div class="col-md-6">
6
- <img ng-src="/promethee/blob/{{component.attributes.blob.id}}" 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}}</p>
14
- </div>
7
+ <img ng-src="/promethee/blob/{{component.attributes.blob.id}}" class="img-responsive">
8
+ </div>
9
+ </div>
10
+
11
+ <div class="row" ng-show="component.master.attributes.alt">
12
+ <div class="col-md-6">
13
+ <b>Alt</b>
14
+ <p>{{component.master.attributes.alt}}</p>
15
15
  </div>
16
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">
17
+ <div class="form-group">
18
+ <label class="label-control">Alt</label>
19
+ <input class="form-control" ng-model="component.attributes.alt" type="text">
20
20
  </div>
21
- <div ng-show="component.attributes.caption">
22
- <b>Description</b>
23
- <input ng-model="component.attributes.caption" type="text" class="form-control">
21
+ </div>
22
+ </div>
23
+
24
+ <div class="row" ng-show="component.master.attributes.caption">
25
+ <div class="col-md-6">
26
+ <b>Description</b>
27
+ <p>{{component.master.attributes.caption}}</p>
28
+ </div>
29
+ <div class="col-md-6">
30
+ <div class="form-group">
31
+ <label class="label-control">Description</label>
32
+ <input class="form-control" ng-model="component.attributes.caption" type="text">
24
33
  </div>
25
34
  </div>
26
35
  </div>
@@ -1,20 +1,30 @@
1
1
  <script type="text/ng-template" id="promethee/components/page/localize">
2
2
  <hr>
3
+
3
4
  <div class="row">
4
5
  <div class="col-md-6">
5
6
  <b>Page title</b>
6
7
  <p>{{component.master.attributes.title}}</p><br>
7
- <div ng-show="component.master.attributes.description">
8
+ </div>
9
+ <div class="col-md-6">
10
+ <div class="form-group">
11
+ <label class="label-control">Page title</label>
12
+ <input class="form-control" ng-model="component.attributes.title" type="text">
13
+ </div>
14
+ </div>
15
+ </div>
16
+
17
+ <div class="row" ng-show="component.master.attributes.description">
18
+ <div class="col-md-6">
19
+ <div>
8
20
  <b>Page description</b>
9
21
  <p>{{component.master.attributes.description}}</p>
10
22
  </div>
11
23
  </div>
12
24
  <div class="col-md-6">
13
- <b>Page title</b>
14
- <input ng-model="component.attributes.title" type="text" class="form-control"><br>
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>
25
+ <div class="form-group">
26
+ <label class="label-control">Page description</label>
27
+ <textarea class="form-control" ng-model="component.attributes.description"></textarea>
18
28
  </div>
19
29
  </div>
20
30
  </div>
@@ -1,13 +1,16 @@
1
1
  <script type="text/ng-template" id="promethee/components/slider/localize">
2
- <div ng-repeat="key, content in component.master.attributes.contents">
2
+ <div ng-show="(component.master.contents | json) !== '{}'">
3
3
  <hr>
4
- <div class="row">
5
- <div class="col-md-6">
6
- <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.contents[key] | htmlSafe"></div>
7
- </div>
8
- <div class="col-md-6" ng-prevent-drag="true">
9
- <summernote config="options" ng-model="component.attributes.contents[key]"></summernote>
4
+
5
+ <div ng-repeat="key, content in component.master.attributes.contents">
6
+ <div class="row">
7
+ <div class="col-md-6">
8
+ <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.contents[key] | htmlSafe"></div>
9
+ </div>
10
+ <div class="col-md-6">
11
+ <summernote config="options" ng-model="component.attributes.contents[key]"></summernote>
12
+ </div>
10
13
  </div>
11
14
  </div>
12
- </div>
15
+ </script>
13
16
  </script>
@@ -1,6 +1,7 @@
1
1
  <script type="text/ng-template" id="promethee/components/text/localize">
2
2
  <div ng-show="component.master.attributes.body">
3
3
  <hr>
4
+
4
5
  <div class="row">
5
6
  <div class="col-md-6">
6
7
  <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.body | htmlSafe"></div>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.4.9'
3
+ VERSION = '1.4.10'
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.4.9
4
+ version: 1.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2018-04-25 00:00:00.000000000 Z
16
+ date: 2018-04-26 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails