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 +4 -4
- data/app/views/promethee/_edit.html.erb +3 -1
- data/app/views/promethee/_show.html.erb +1 -1
- data/app/views/promethee/components/page/_edit.inspect.html.erb +18 -0
- data/app/views/promethee/components/page/_localize.html.erb +13 -1
- data/app/views/promethee/components/page/_show.html.erb +13 -0
- data/lib/promethee/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f180eb7630bd1c19833b0699a8d420a9c7a4e5b
|
|
4
|
+
data.tar.gz: 294f8076aa4b2dd4b0b6f5e3efebaf0b6039e5cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 227d2a051d98f179844614bb92992ab7e88e61b354d05e5d6cf429421e8784c45d47a764105c828a28c641e45859dce05b8cc8ee1423cc71e3b84926cf931e97
|
|
7
|
+
data.tar.gz: b3603c8adc1f248535ab40a78326ed3c14f4f027b5dfc69e2840a1ba1fae8163b252891cc49bd4bda25212ed8a134282013309702d0e61a8c73d367c2bfb8b21
|
|
@@ -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/
|
|
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] %>
|
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.
|
|
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-
|
|
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.
|
|
321
|
+
rubygems_version: 2.6.12
|
|
322
322
|
signing_key:
|
|
323
323
|
specification_version: 4
|
|
324
324
|
summary: Bring fire to your page
|