effective_bootstrap 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_bootstrap_helper.rb +4 -3
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb0803775215bcccd029fb2569ee2faa52109be3926b8d48e2a5e1c74eab5e37
|
4
|
+
data.tar.gz: 3027ea16142e60e77fd58dadcaffef36a1ac21de6c1708e5fb2207a7e0eb58c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e78594a0693f470165cedd51fb48e894b51ad5b909c997e227d74c0379db8133a054e0606b2fe298f30a45fd06843a9b7d8a4e2d3fd7e746256167a00d9e3b9
|
7
|
+
data.tar.gz: 41eb6bc2021961b4775a9a044340d5cde19e259d4c8cd745519b4103536a4afe1799eb8b7218d021936ae944fb231532a03ca03b5c20c42786064053716ce2b4
|
@@ -19,11 +19,12 @@ module EffectiveBootstrapHelper
|
|
19
19
|
show = (opts.delete(:show) == true)
|
20
20
|
|
21
21
|
link_opts = { 'data-toggle': 'collapse', role: 'button', href: "##{id}", 'aria-controls': "##{id}", 'aria-expanded': show }
|
22
|
-
|
22
|
+
div_class = opts.delete(:div_class)
|
23
|
+
card_class = opts.delete(:card_class) || 'my-2'
|
23
24
|
|
24
25
|
content_tag(:a, label, link_opts.merge(opts)) +
|
25
|
-
content_tag(:div, id: id, class: ['collapse', ('show' if show)].compact.join(' ')) do
|
26
|
-
content_tag(:div, capture(&block), class: ['card', 'card-body', card_class
|
26
|
+
content_tag(:div, id: id, class: ['collapse', div_class, ('show' if show)].compact.join(' ')) do
|
27
|
+
content_tag(:div, capture(&block), class: ['card', 'card-body', card_class].compact.join(' '))
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|