promethee 1.3.9 → 1.3.10

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: df76ca52499900498a2ff40350dae10ceadb8727
4
- data.tar.gz: 983fdb405ee1e2cb7de785b6246f5d2b32f77320
3
+ metadata.gz: 4f180eb7630bd1c19833b0699a8d420a9c7a4e5b
4
+ data.tar.gz: 294f8076aa4b2dd4b0b6f5e3efebaf0b6039e5cc
5
5
  SHA512:
6
- metadata.gz: fd489fa650db088fb8c99deb76b9021697cc04f2d9df416bb4b6ebac9a529f55371ecb3bf1437f7f8246aa33aa1853b994a50af6f17c82270d940a3e95226cf4
7
- data.tar.gz: e7bd37fb63c2df0fa1503e44f0f4fb399c1f4f17268bb70cad4c75e7d6233cfb1b453cae3123fbccabf84e148119642f3343141e644a9bc0a444ce46f6b10611
6
+ metadata.gz: 227d2a051d98f179844614bb92992ab7e88e61b354d05e5d6cf429421e8784c45d47a764105c828a28c641e45859dce05b8cc8ee1423cc71e3b84926cf931e97
7
+ data.tar.gz: b3603c8adc1f248535ab40a78326ed3c14f4f027b5dfc69e2840a1ba1fae8163b252891cc49bd4bda25212ed8a134282013309702d0e61a8c73d367c2bfb8b21
@@ -32,7 +32,9 @@ promethee.controller('PrometheeController', ['$scope', 'summernoteConfig', 'pres
32
32
  version: 1,
33
33
  attributes: {
34
34
  title: 'New page',
35
- description: ''
35
+ description: '',
36
+ stylesheets: '',
37
+ javascripts: ''
36
38
  },
37
39
  children: []
38
40
  };
@@ -2,5 +2,5 @@
2
2
  promethee_data = Promethee::Data.new master_data, localization_data: localization_data
3
3
  %>
4
4
  <div class="promethee">
5
- <%= render 'promethee/show/components', components: promethee_data[:children] %>
5
+ <%= render 'promethee/show/component', component: promethee_data %>
6
6
  </div>
@@ -8,4 +8,22 @@
8
8
  <label class="label-control">Description</label>
9
9
  <input class="form-control" ng-model="promethee.inspected.attributes.description">
10
10
  </div>
11
+
12
+ <div class="panel panel-default" ng-init="advancedConfigurationOpen = false">
13
+ <div class="panel-heading" ng-click="advancedConfigurationOpen = !advancedConfigurationOpen">
14
+ Advanced configuration
15
+ <%= fa_icon 'angle-down', class: 'fa-pull-right', 'ng-class': "{'fa-rotate-180': advancedConfigurationOpen}", style: 'font-size: 18px' %>
16
+ </div>
17
+ <div class="panel-body" ng-show="advancedConfigurationOpen">
18
+ <div class="form-group">
19
+ <label class="label-control">Stylesheets</label>
20
+ <textarea class="form-control" ng-model="promethee.inspected.attributes.stylesheets"></textarea>
21
+ </div>
22
+
23
+ <div class="form-group">
24
+ <label class="label-control">Javascripts</label>
25
+ <textarea class="form-control" ng-model="promethee.inspected.attributes.javascripts"></textarea>
26
+ </div>
27
+ </div>
28
+ </div>
11
29
  </script>
@@ -1,3 +1,15 @@
1
1
  <script type="text/ng-template" id="promethee/components/page/localize">
2
-
2
+ <div class="row">
3
+ <div class="col-md-6">
4
+ <b>Local</b>
5
+ <input ng-model="component.attributes.title" type="text" class="form-control">
6
+ <input ng-model="component.attributes.description" type="text" class="form-control">
7
+ </div>
8
+ <div class="col-md-6">
9
+ <b>Master</b>
10
+ <input ng-model="component.master.attributes.title" type="text" class="form-control" disabled/>
11
+ <input ng-model="component.master.attributes.description" type="text" class="form-control" disabled/>
12
+ </div>
13
+ </div>
14
+ <hr>
3
15
  </script>
@@ -1 +1,14 @@
1
+ <%
2
+ stylesheets = component[:attributes][:stylesheets]
3
+ javascripts = component[:attributes][:javascripts]
4
+ %>
5
+
6
+ <% if stylesheets.present? %>
7
+ <style><%= stylesheets.html_safe %></style>
8
+ <% end %>
9
+
10
+ <% if javascripts.present? %>
11
+ <script><%= javascripts.html_safe %></script>
12
+ <% end %>
13
+
1
14
  <%= render 'promethee/show/components', components: component[:children] %>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.3.9'
3
+ VERSION = '1.3.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.3.9
4
+ version: 1.3.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-03-29 00:00:00.000000000 Z
16
+ date: 2018-03-30 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
318
  version: '0'
319
319
  requirements: []
320
320
  rubyforge_project:
321
- rubygems_version: 2.6.13
321
+ rubygems_version: 2.6.12
322
322
  signing_key:
323
323
  specification_version: 4
324
324
  summary: Bring fire to your page