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 +4 -4
- data/app/views/promethee/components/aside/_edit.define.html.erb +1 -1
- data/app/views/promethee/components/aside/_edit.move.html.erb +4 -4
- data/app/views/promethee/components/aside/_localize.html.erb +26 -0
- data/app/views/promethee/components/aside/_show.html.erb +15 -1
- data/app/views/promethee/components/cover/_localize.html.erb +45 -6
- data/app/views/promethee/components/image/_localize.html.erb +24 -15
- data/app/views/promethee/components/page/_localize.html.erb +16 -6
- data/app/views/promethee/components/slider/_localize.html.erb +11 -8
- data/app/views/promethee/components/text/_localize.html.erb +1 -0
- data/lib/promethee/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc7e58f3664530c0d67ed60fd10af89f8367be09
|
4
|
+
data.tar.gz: 5f0e7ef1acc0494ad8ffca2a95a70d4c83129187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db42e5435851d64da37a8d2221ddf12cd1a3ee18dd29cb85a11c7f1151a7fe9f22eab0630a9781d95704c39678abaa7d766df9388ad8c46c0ba7d5b868941a91
|
7
|
+
data.tar.gz: 1eabc3fa90bd07de4a71a30b09118e8173818384ca8ceec7a3790bcc2e86911710c2b8e2f00f32983725b5bd817c1fd339119e5b6a9e57e15b9bedd674f723a9
|
@@ -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-
|
4
|
-
|
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
|
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-
|
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
|
-
<%=
|
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
|
3
|
-
<
|
4
|
-
|
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
|
-
|
7
|
-
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
18
|
-
<
|
19
|
-
<input ng-model="component.attributes.alt" type="text"
|
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
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
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
|
-
<
|
14
|
-
|
15
|
-
|
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-
|
2
|
+
<div ng-show="(component.master.contents | json) !== '{}'">
|
3
3
|
<hr>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
</
|
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>
|
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.
|
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-
|
16
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|