promethee 1.0.15 → 1.0.16
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/edit/write/_toolbar.html.erb +1 -1
- data/app/views/promethee/edit/write/component/_column.html.erb +27 -6
- data/app/views/promethee/edit/write/component/_image.html.erb +3 -1
- data/app/views/promethee/edit/write/component/_row.html.erb +13 -0
- data/app/views/promethee/edit/write/component/_text.html.erb +4 -2
- data/app/views/promethee/edit/write/component/_video.html.erb +12 -1
- data/lib/promethee/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5414d58a8567e08c180995653ab9e3755298901d
|
4
|
+
data.tar.gz: 2aa4b0eb73ec172db80d0de22984e08be9b2ad7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3717ba625f86d8ceb4483ab60ff744f5f62991d334564bbbcecb279875045623fc2f255fb5b029f98a5c1b3b38c95fa22faf1c15c5d0beadb8ecf3042b13cc98
|
7
|
+
data.tar.gz: adfb6d19b7a2badb82507b21579c6d3e591b2988e600afc174aa6fe016dfd2e9f00279921c779de3bd0dd914f62e72705fa2c964bcbb7530d92cd198f724567e
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/write/toolbar">
|
2
2
|
<div class="pull-right">
|
3
|
-
<span ng-click="
|
3
|
+
<span ng-click="toggleEdit()" class="promethee-editor__button"><%= fa_icon 'pencil-square' %></span>
|
4
4
|
<span ng-click="remove(component, components)" class="promethee-editor__button"><%= fa_icon 'window-close' %></span>
|
5
5
|
</div>
|
6
6
|
</script>
|
@@ -1,10 +1,13 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/write/component/column">
|
2
|
-
<div
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
<div
|
3
|
+
class="
|
4
|
+
col
|
5
|
+
col-md-{{component.attributes.size}}
|
6
|
+
col-md-offset-{{component.attributes.offset}}
|
7
|
+
promethee-editor__component
|
8
|
+
promethee-editor__component--column
|
9
|
+
"
|
10
|
+
ng-controller="ColumnController"
|
8
11
|
>
|
9
12
|
<div class="promethee-editor__toolbar">
|
10
13
|
Column
|
@@ -32,3 +35,21 @@
|
|
32
35
|
</span>
|
33
36
|
</div>
|
34
37
|
</script>
|
38
|
+
|
39
|
+
<script>
|
40
|
+
promethee.controller('ColumnController', ['$scope', function($scope) {
|
41
|
+
$scope.editing = false;
|
42
|
+
|
43
|
+
$scope.edit = function() {
|
44
|
+
this.editing = true;
|
45
|
+
};
|
46
|
+
|
47
|
+
$scope.complete = function() {
|
48
|
+
this.editing = false;
|
49
|
+
};
|
50
|
+
|
51
|
+
$scope.toggleEdit = function() {
|
52
|
+
this.editing = !this.editing;
|
53
|
+
};
|
54
|
+
}]);
|
55
|
+
</script>
|
@@ -36,7 +36,6 @@
|
|
36
36
|
});
|
37
37
|
|
38
38
|
promethee.controller('ImageController', ['$scope', function($scope) {
|
39
|
-
|
40
39
|
$scope.editing = false;
|
41
40
|
|
42
41
|
$scope.edit = function() {
|
@@ -47,5 +46,8 @@
|
|
47
46
|
this.editing = false;
|
48
47
|
};
|
49
48
|
|
49
|
+
$scope.toggleEdit = function() {
|
50
|
+
this.editing = !this.editing;
|
51
|
+
};
|
50
52
|
}]);
|
51
53
|
</script>
|
@@ -39,5 +39,18 @@
|
|
39
39
|
})
|
40
40
|
}
|
41
41
|
|
42
|
+
$scope.editing = false;
|
43
|
+
|
44
|
+
$scope.edit = function() {
|
45
|
+
this.editing = true;
|
46
|
+
};
|
47
|
+
|
48
|
+
$scope.complete = function() {
|
49
|
+
this.editing = false;
|
50
|
+
};
|
51
|
+
|
52
|
+
$scope.toggleEdit = function() {
|
53
|
+
this.editing = !this.editing;
|
54
|
+
};
|
42
55
|
}]);
|
43
56
|
</script>
|
@@ -27,7 +27,6 @@
|
|
27
27
|
});
|
28
28
|
|
29
29
|
promethee.controller('TextController', ['$scope', function($scope) {
|
30
|
-
|
31
30
|
$scope.editing = false;
|
32
31
|
|
33
32
|
$scope.edit = function() {
|
@@ -38,6 +37,10 @@
|
|
38
37
|
this.editing = false;
|
39
38
|
};
|
40
39
|
|
40
|
+
$scope.toggleEdit = function() {
|
41
|
+
this.editing = !this.editing;
|
42
|
+
};
|
43
|
+
|
41
44
|
$scope.options = {
|
42
45
|
toolbar: [
|
43
46
|
['headline', ['style']],
|
@@ -46,6 +49,5 @@
|
|
46
49
|
['code', ['codeview']]
|
47
50
|
]
|
48
51
|
};
|
49
|
-
|
50
52
|
}]);
|
51
53
|
</script>
|
@@ -30,9 +30,20 @@
|
|
30
30
|
});
|
31
31
|
|
32
32
|
promethee.controller('VideoController', ['$scope', function($scope) {
|
33
|
-
|
34
33
|
$scope.editing = false;
|
35
34
|
|
35
|
+
$scope.edit = function() {
|
36
|
+
this.editing = true;
|
37
|
+
};
|
38
|
+
|
39
|
+
$scope.complete = function() {
|
40
|
+
this.editing = false;
|
41
|
+
};
|
42
|
+
|
43
|
+
$scope.toggleEdit = function() {
|
44
|
+
this.editing = !this.editing;
|
45
|
+
};
|
46
|
+
|
36
47
|
Object.defineProperty($scope, 'embed', {
|
37
48
|
get: function() {
|
38
49
|
var embed = null;
|