promethee 1.6.13 → 1.6.14

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: b11e4fdda7543b50887e2d82123d3428bc8cb022
4
- data.tar.gz: b4920313f3427eee1de25c8d09d207a7ef027cf2
3
+ metadata.gz: 819437689551204bc16094c0c28ecb78e5288f30
4
+ data.tar.gz: ef92040ac874a414134a9e7408ecfdbfdee6647e
5
5
  SHA512:
6
- metadata.gz: 520fe41c66d54fc277e28f0bd9a811c1656b8b6049d6b727d82a9515fb99eabf8024644572d262131a38614607d9cd5ac521cf1371890f183be3303039d6cdb2
7
- data.tar.gz: 516ded2d3a6c2634adc2c475660399e749cfe6e90cf0b1f247cac35b70f6b2d5bd50d442fad3ce9a373f4c753a73aca74049e159e07558ce224d2ae8c9b1793c
6
+ metadata.gz: b38689f56183e01e71067451da849903e2a56093505007617dfc9153fbc275574871b6963bf6607f3cfad54b570c584ccdc3c01a5d60c4193fa37c332013a670
7
+ data.tar.gz: d3685352d28ee48cc2e7dd031cb1388571e2d076daea1b0f4155379760d5b0b407ff8a9ead57b588987806d02e5d4c41ada2429a37e5b50b0e347fdebd068846
@@ -15,3 +15,12 @@
15
15
  position: absolute
16
16
  transform: translateY(-50%)
17
17
  font-size: 30px
18
+
19
+ &__aside
20
+ .aside__button--center
21
+ margin-left: auto
22
+ margin-right: auto
23
+ .aside__button--left
24
+ margin-right: auto
25
+ .aside__button--right
26
+ margin-left: auto
@@ -10,11 +10,12 @@
10
10
  attributes: {
11
11
  visible_content: '<p>Edit me</p>',
12
12
  collapsed_content: '',
13
- open_label: 'See more'
13
+ open_label: 'See more',
14
+ open_label_position: 'left'
14
15
  },
15
16
  children: []
16
17
  }
17
18
  })
18
19
  JAVASCRIPT
19
20
  %>
20
- <div ng-init="<%= init %>"></div>
21
+ <div ng-init="<%= init %>"></div>
@@ -13,4 +13,13 @@
13
13
  <label class="label-control">Button label</label>
14
14
  <input ng-model="promethee.inspected.attributes.open_label" class="form-control" type="text"/>
15
15
  </div>
16
+
17
+ <div class="form-group">
18
+ <label class="label-control">Button label position</label>
19
+ <div>
20
+ <label class="radio-inline"> <input ng-model="promethee.inspected.attributes.open_label_position" class="form-control" type="radio" value="left" />Left </label>
21
+ <label class="radio-inline"> <input ng-model="promethee.inspected.attributes.open_label_position" class="form-control" type="radio" value="center" />Center </label>
22
+ <label class="radio-inline"> <input ng-model="promethee.inspected.attributes.open_label_position" class="form-control" type="radio" value="right" />Right </label>
23
+ </div>
24
+ </div>
16
25
  </script>
@@ -2,6 +2,7 @@
2
2
  visible_content = component[:attributes][:visible_content].to_s
3
3
  collapsed_content = component[:attributes][:collapsed_content].to_s
4
4
  open_label = component[:attributes][:open_label].to_s
5
+ open_label_position = component[:attributes][:open_label_position].to_s
5
6
  %>
6
7
 
7
8
  <aside class="<%= promethee_class_for component %> aside">
@@ -14,7 +15,7 @@
14
15
  </div>
15
16
 
16
17
  <div class="aside__button">
17
- <a href="#aside-collapse-<%= component[:id] %>" data-toggle="collapse"><%= open_label %></a>
18
+ <a href="#aside-collapse-<%= component[:id] %>" data-toggle="collapse" class="aside__button--<%= open_label_position %>"><%= open_label %></a>
18
19
  </div>
19
20
 
20
21
  <% end %>
@@ -18,7 +18,7 @@
18
18
  </div>
19
19
 
20
20
  <promethee-uploader ng-model="promethee.inspected.attributes.bgimage1" label="Background Image 1" limits="'.jpg,.jpeg,.png,.gif'"></promethee-uploader>
21
- <promethee-uploader ng-model="promethee.inspected.attributes.bgimage2" label="Background Image 2"></promethee-uploader>
21
+ <promethee-uploader ng-model="promethee.inspected.attributes.bgimage2" label="Background Image 2" limits="'.jpg,.jpeg,.png,.gif'"></promethee-uploader>
22
22
 
23
23
  </div>
24
24
  </script>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.6.13'
3
+ VERSION = '1.6.14'
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.6.13
4
+ version: 1.6.14
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-06-12 00:00:00.000000000 Z
16
+ date: 2018-06-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails