scrivito_accordion_widget 1.0.2 → 1.0.6

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: a61af581ce01d2927858b07d4d8cdff208ec7814
4
- data.tar.gz: de908a58fdb4c422e8928d5df1bdf71189fd0131
3
+ metadata.gz: ce6440267f1bdbd45914b6180fe1f8c05149c780
4
+ data.tar.gz: d6006e6c42156de9087050766957a63bb425b203
5
5
  SHA512:
6
- metadata.gz: fbf9ddc67d3519c0c7b30ed01bc9ca8cebafdc554c33a5f2e5f0f31a6310f654915f91a928576148d2adc3c31ece3b99583eb9ce24563b9583dbaa08689ebedb
7
- data.tar.gz: b0ade8c4af41e3170d03d70873af64bec28c66b44b2fd66554e01a4ab7625aee9be6d1e10e986b01c30f51d40acea6e0c8411c08a5c4ca37842dbc9320fb982e
6
+ metadata.gz: 2d5d502858f882a06fa04e20a6599878bc84e12cc63aee170683fee58be91f910469ec02a34ffac7d6629afed7ff3be5a5f498d66f22d386dcc6774be599b7d7
7
+ data.tar.gz: 796652a3f75ed5538e0068e63b015fbb16849fae76b1d9c1606e93c3f3246d42c5994ba23c226f8a3ef10844b42b5fabdaeb6002cab83eafa0ecd9d7befc744d
data/README.md CHANGED
@@ -15,13 +15,9 @@ Add this line to your application's `Gemfile`:
15
15
 
16
16
  gem 'scrivito_accordion_widget'
17
17
 
18
- You should add this line to your editing Stylesheet manifest for better usage in edit mode:
18
+ Than add to your stylesheet manifest:
19
19
 
20
- *= require accordion_widget/editing
21
-
22
- Add this line to your application javascript manifest:
23
-
24
- /= require accordion_widget/application
20
+ *= require scrivito_accordion_widget
25
21
 
26
22
  After that, execute:
27
23
 
@@ -0,0 +1,7 @@
1
+ *[data-scrivito-display-mode="editing"] *[data-scrivito-widget-obj-class] .panel-group *[data-scrivito-field-type="widget"] {
2
+ margin-top: 0;
3
+ }
4
+
5
+ .scrivito_editing_active .panel-group {
6
+ padding-top: 30px;
7
+ }
@@ -1,9 +1,3 @@
1
- <div class='panel-group' id='<%= "accordion-#{widget.id}" %>'>
2
- <% if scrivito_in_editable_view? %>
3
- <%= scrivito_tag(:div, widget, :panels) %>
4
- <% else %>
5
- <% widget.panels.each do |panel| %>
6
- <%= scrivito_value(panel) %>
7
- <% end %>
8
- <% end %>
1
+ <div class='panel-group' id='<%= "accordion-#{widget.id}" %>' role="tablist" aria-multiselectable="true">
2
+ <%= scrivito_tag(:div, widget, :panels) %>
9
3
  </div>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAccordionWidget
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_accordion_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -62,8 +62,7 @@ files:
62
62
  - LICENSE
63
63
  - README.md
64
64
  - Rakefile
65
- - app/assets/javascripts/accordion_widget/application.js.coffee
66
- - app/assets/stylesheets/accordion_widget/editing.css
65
+ - app/assets/stylesheets/scrivito_accordion_widget.css
67
66
  - app/models/accordion_panel_widget.rb
68
67
  - app/models/accordion_widget.rb
69
68
  - app/views/accordion_panel_widget/show.html.erb
@@ -95,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
94
  version: '0'
96
95
  requirements: []
97
96
  rubyforge_project:
98
- rubygems_version: 2.3.0
97
+ rubygems_version: 2.2.2
99
98
  signing_key:
100
99
  specification_version: 4
101
100
  summary: Scrivito Accordion Widget.
@@ -1,8 +0,0 @@
1
- $ ->
2
- # The accordion widget uses the Twitter Bootstrap 3 panel JavaScript. In edit mode, all panels
3
- # should unfold, so that the editor can manipulate their contents directly.
4
-
5
- if scrivito
6
- scrivito.on 'load', ->
7
- if scrivito.in_editable_view()
8
- $('.panel-collapse').collapse('show')
@@ -1,7 +0,0 @@
1
- body[data-scrivito-display-mode='editing'] .panel-collapse.collapse {
2
- min-height: 80px;
3
- }
4
-
5
- body[data-scrivito-display-mode='editing'] .accordion {
6
- overflow: hidden;
7
- }