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 +4 -4
- data/README.md +2 -6
- data/app/assets/stylesheets/scrivito_accordion_widget.css +7 -0
- data/app/views/accordion_widget/show.html.erb +2 -8
- data/lib/scrivito_accordion_widget/version.rb +1 -1
- metadata +4 -5
- data/app/assets/javascripts/accordion_widget/application.js.coffee +0 -8
- data/app/assets/stylesheets/accordion_widget/editing.css +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce6440267f1bdbd45914b6180fe1f8c05149c780
|
4
|
+
data.tar.gz: d6006e6c42156de9087050766957a63bb425b203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
18
|
+
Than add to your stylesheet manifest:
|
19
19
|
|
20
|
-
*= require
|
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
|
|
@@ -1,9 +1,3 @@
|
|
1
|
-
<div class='panel-group' id='<%= "accordion-#{widget.id}" %>'>
|
2
|
-
|
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>
|
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.
|
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:
|
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/
|
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.
|
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')
|