promethee 1.4.7 → 1.4.8

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: 39a3cfd4fb50431eb643b4447a88a11f086d9888
4
- data.tar.gz: 7a436c59748cc1b9498b46b555338ce17bba7e99
3
+ metadata.gz: 3b4d5a99e5945b1212e0fd1f31620a9d218472ea
4
+ data.tar.gz: 79e6b13c3e2400f8c79699cc118089ec2af4ed2b
5
5
  SHA512:
6
- metadata.gz: b16c459cc3f67c9d89d4ac6889f756035fa97ac57ccde75d22ef4aa6b020699cbf7f7c13143564ce5df4e6977fdeb61174990d53a6f09f287745034966c2e3a7
7
- data.tar.gz: 6e578c6a4e58721e3e5ca5eeccb02c9838e5a1a36a1881eda22c8b7317542050eac9c9e92e617165259bf84a74214a7a232099dbae19f75ceb117b7dcb235b74
6
+ metadata.gz: bb4cbd835e2742a6272932b8c0da17cc05465db64ba48c46a1c73475a556b68c4b09bc3eca518d080d3510465418256078005763dcec5f16d9b0d0d11ce4d1fd
7
+ data.tar.gz: 5d1167f496414344cfd1e6be188e56faf8004f0facf382362031c32cb4ae53c44998fcd4e3cb979ffab06987655a043fdd9c040bf76b4e3654d129b04642a256
@@ -5,7 +5,10 @@
5
5
  icon: #{render('promethee/components/aside/icon').to_json.html_safe},
6
6
  data: {
7
7
  type: 'aside',
8
- attributes: {},
8
+ attributes: {
9
+ visible_content: '',
10
+ collapsed_content: ''
11
+ },
9
12
  children: []
10
13
  }
11
14
  })
@@ -1,3 +1,11 @@
1
1
  <script type="text/ng-template" id="promethee/components/aside/edit/inspect">
2
- No option for aside.
2
+ <div class="form-group">
3
+ <label class="label-control">Visible content</label>
4
+ <summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.visible_content"></summernote>
5
+ </div>
6
+
7
+ <div class="form-group">
8
+ <label class="label-control">Collapsed content</label>
9
+ <summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.collapsed_content"></summernote>
10
+ </div>
3
11
  </script>
@@ -1,14 +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
- <ng-include src="'promethee/move/components'"></ng-include>
4
- <div
5
- class=" promethee-edit__move__droppable
6
- promethee-edit__move__droppable--row"
7
- droppable
8
- data-index="{{$index+1}}"
9
- data-type="{{type}}"
10
- >
11
- </div>
3
+ <aside ng-if="component.attributes.collapsed_content">
4
+ {{component.attributes.visible_content | htmlSafe}}
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>
7
+ </aside>
8
+
9
+ <aside ng-if="!component.attributes.collapsed_content" ng-bind-html="component.attributes.visible_content"></aside>
12
10
  </div>
13
11
  </div>
14
12
  </script>
@@ -9,9 +9,16 @@ title = component[:attributes][:title].to_s
9
9
  subtitle = component[:attributes][:subtitle].to_s
10
10
  %>
11
11
  <div class="<%= promethee_class_for(component) %>" style="background-image: url(<%= url_for(blob.variant(resize: '1920')) if blob %>)">
12
- <hgroup>
13
- <% unless surtitle.blank? %><h2><%= surtitle %></h2><% end %>
14
- <% unless title.blank? %><h1><%= title %></h1><% end %>
15
- <% unless subtitle.blank? %><h2><%= subtitle %></h2><% end %>
16
- </hgroup>
12
+ <% if surtitle.present? %>
13
+ <p><%= surtitle %></p>
14
+ <% end %>
15
+
16
+ <% if title.present? %>
17
+ <h1><%= title %></h1>
18
+ <% end %>
19
+
20
+ <% if subtitle.present? %>
21
+ <p><%= subtitle %></p>
22
+ <% end %>
23
+
17
24
  </div>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.4.7'
3
+ VERSION = '1.4.8'
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.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos
@@ -341,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
341
  version: '0'
342
342
  requirements: []
343
343
  rubyforge_project:
344
- rubygems_version: 2.6.11
344
+ rubygems_version: 2.6.12
345
345
  signing_key:
346
346
  specification_version: 4
347
347
  summary: Bring fire to your page