effective_bootstrap 1.16.3 → 1.16.4
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/helpers/effective_bootstrap_helper.rb +15 -8
- 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: a3ae83f617d9b5fe35307b2b685480ba6ca0e8973cf66ffc0f6b401929ca3cdc
|
4
|
+
data.tar.gz: 6bd06b8c2580d0421fe91ac55182396bb1cf52fd0e4c9b6089d0954a395e90dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0b275deee025c6631bd2a9419cb33ddf7b4bbd5789d35940836ed39107f749442826d66b615ba46713c623fa6c0fdc99e9af201a1d26bebf5b069f8de4b6ef7
|
7
|
+
data.tar.gz: 5755a4b4080a05265cb35ea3c3a740c2e80dccc81e56f4051921d65adf41454e7a0dcf91c9836206cac20d645574d21fdc18db7ef6c03b64e273ff85caca25a6
|
@@ -129,8 +129,9 @@ module EffectiveBootstrapHelper
|
|
129
129
|
id = "collapse-#{effective_bootstrap_unique_id}"
|
130
130
|
show = (opts.delete(:show) == true)
|
131
131
|
|
132
|
-
#
|
133
|
-
|
132
|
+
# The div and the card now
|
133
|
+
div_class = opts.delete(:div_class)
|
134
|
+
card_class = opts.delete(:card_class) || 'card card-body my-2'
|
134
135
|
|
135
136
|
# Two link labels
|
136
137
|
label_expand = opts.delete(:expand) || label.to_s.tap do |label|
|
@@ -142,13 +143,19 @@ module EffectiveBootstrapHelper
|
|
142
143
|
end + icon('chevron-up')
|
143
144
|
|
144
145
|
# The link html classes
|
145
|
-
|
146
|
-
|
147
|
-
|
146
|
+
link_class = opts.delete(:link_class) || 'btn btn-link'
|
147
|
+
link_class += ' effective-collapse-actions hidden-print'
|
148
|
+
link_class += ' collapsed' unless show
|
148
149
|
|
149
|
-
#
|
150
|
-
|
151
|
-
|
150
|
+
# Figure out all the button / link options
|
151
|
+
link_opts = {
|
152
|
+
'data-toggle': 'collapse',
|
153
|
+
role: 'button',
|
154
|
+
href: "##{id}",
|
155
|
+
'aria-controls': "##{id}",
|
156
|
+
'aria-expanded': show,
|
157
|
+
class: link_class
|
158
|
+
}.merge(opts)
|
152
159
|
|
153
160
|
# Normal collapse
|
154
161
|
link_tag = content_tag(:a, link_opts) do
|
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: 1.16.
|
4
|
+
version: 1.16.4
|
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: 2023-
|
11
|
+
date: 2023-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|