promethee 1.9.0 → 1.10.0

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
  SHA256:
3
- metadata.gz: c6c33275ad1c38431cc213b6de0087eea945f4c3dad24373764134ac1a170e2b
4
- data.tar.gz: 4907b8a5703a23e9e7a94b2907ac78071744582855c3159ef18b1efa0a7b56bd
3
+ metadata.gz: 59747adf42e4e1d191ac47ed5294da4b943d601e739bdd84a6cec94cf8581e28
4
+ data.tar.gz: a3855944e5642ec7dc0ce4e93a5429fe383fecb0a27676aec731061d817d8929
5
5
  SHA512:
6
- metadata.gz: 3d1d4d62a64aed238c99a1f127a85587990a8355cb22a15a7cd147836045a7d19efbeea9f4ae3c69edf7e750508f2d693e2098ed5c5dff9329aaa62644c9c2bf
7
- data.tar.gz: 6d7112404ae93fd6d7eccd1910b4bcb0f7a945447bc36a9a2322d3738c056f02ab97166b7e154c6eb8d77a050481ab55600485967f1ad521f9b76e752e4e1590
6
+ metadata.gz: 63591f048858085cbb3fa8888221ab2666d5ce15e3919df30e8842bd1c018c795e3c92f040715ac49ad88c051c7b46e558b5c111270be0270120bd2ca3f51e7d
7
+ data.tar.gz: de9fa33d6231f0b99bd7321b20e62c9e9b3ccc5e407b9c8f668ab17685fb1a75ad9c4e293dc18ecc493b739a929fcaa445b220323f0e6ca8eba3d0bb1f1822a0
data/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
  Add this line to your application's Gemfile:
7
7
 
8
8
  ```ruby
9
+ gem 'bootstrap-sass' # For Bootstrap 3
10
+ gem 'bootstrap' # For Bootstrap 4
9
11
  gem 'promethee'
10
12
  ```
11
13
 
@@ -95,12 +97,14 @@ Which renders to:
95
97
 
96
98
  With javascript set:
97
99
  ```
98
- //= require fancybox/dist/js/jquery.fancybox
100
+ //= require 'bootstrap-sprockets'
101
+ //= require @fancyapps/fancybox/dist/jquery.fancybox.min
99
102
  //= require promethee/fancybox
100
103
  ```
101
104
 
102
105
  With stylesheets set:
103
106
  ```
107
+ @import 'bootstrap-sprockets' // Only Bootstrap 3
104
108
  @import 'bootstrap'
105
109
  @import 'font-awesome-sprockets'
106
110
  @import 'font-awesome'
@@ -163,7 +167,7 @@ With javascript set:
163
167
  ```
164
168
  //= require jquery
165
169
  //= require jquery-ui
166
- //= require bootstrap
170
+ //= require bootstrap-sprockets
167
171
  //= require angular
168
172
  //= require angular-animate
169
173
  //= require summernote/summernote
@@ -173,6 +177,7 @@ With javascript set:
173
177
 
174
178
  With stylesheets set:
175
179
  ```
180
+ @import 'bootstrap-sprockets' // Only Bootstrap 3
176
181
  @import 'bootstrap'
177
182
  @import 'font-awesome-sprockets'
178
183
  @import 'font-awesome'
@@ -26,6 +26,15 @@
26
26
  font-size: 12px
27
27
  line-height: 12px
28
28
  z-index: 1
29
+
30
+ &--aside
31
+ .btn
32
+ &.left
33
+ text-align: left
34
+ &.center
35
+ text-align: center
36
+ &.right
37
+ text-align: right
29
38
 
30
39
  &--faq_item
31
40
  margin-bottom: 10px
@@ -1,15 +1,16 @@
1
1
  <script type="text/ng-template" id="promethee/components/aside/edit/move">
2
2
  <%= render 'promethee/edit/move.header', type: 'aside' %>
3
- <aside ng-show="component.attributes.searchable_collapsed_content"
3
+ <aside ng-show="component.attributes.searchable_collapsed_content"
4
4
  ng-init="collapsed = true">
5
5
  <div ng-bind-html="component.attributes.searchable_visible_content | htmlSafe"></div>
6
- <div ng-hide="collapsed"
6
+ <div ng-hide="collapsed"
7
7
  ng-bind-html="component.attributes.searchable_collapsed_content | htmlSafe"></div>
8
- <a class="btn btn-default btn-block"
8
+ <a class="btn btn-default btn-block"
9
+ ng-class="component.attributes.open_label_position"
9
10
  ng-click="collapsed = !collapsed"
10
11
  ng-bind-html="component.attributes.searchable_open_label | htmlSafe"></a>
11
12
  </aside>
12
- <aside ng-hide="component.attributes.searchable_collapsed_content"
13
+ <aside ng-hide="component.attributes.searchable_collapsed_content"
13
14
  ng-bind-html="component.attributes.searchable_visible_content | htmlSafe"></aside>
14
15
  </div>
15
16
  </div>
@@ -14,8 +14,8 @@
14
14
  <%= searchable_collapsed_content.html_safe %>
15
15
  </div>
16
16
 
17
- <div class="aside__button">
18
- <a href="#aside-collapse-<%= component[:id] %>" data-toggle="collapse" class="aside__button--<%= open_label_position %>"><%= searchable_open_label %></a>
17
+ <div class="aside__button aside__button--<%= open_label_position %>">
18
+ <a href="#aside-collapse-<%= component[:id] %>" data-toggle="collapse"><%= searchable_open_label %></a>
19
19
  </div>
20
20
 
21
21
  <% end %>
@@ -1,4 +1,3 @@
1
- require 'bootstrap-sass'
2
1
  require 'font-awesome-sass'
3
2
  require 'jquery-rails'
4
3
  require 'jquery-ui-rails'
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.9.0'
3
+ VERSION = '1.10.0'
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.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Gaya
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2018-11-21 00:00:00.000000000 Z
17
+ date: 2018-11-22 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails
@@ -44,20 +44,6 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 1.6.2
47
- - !ruby/object:Gem::Dependency
48
- name: bootstrap-sass
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
47
  - !ruby/object:Gem::Dependency
62
48
  name: sass-rails
63
49
  requirement: !ruby/object:Gem::Requirement