effective_bootstrap 0.12.4 → 0.12.5
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 +8 -1
- 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: 22048b944f0134520eeb6dd5939f63c64157d88c739feab38521a5c674162bdb
|
4
|
+
data.tar.gz: 2d84f22a5af534ff9d16d09dca3fb54d45e6da3501eb74c3111158c025e31fc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40c4a3831b11ea98ca38ab010761b225f51062246d69cdccc68dfceb76d0da0c1c86d810df274701cb31d6735c5b44258e1eafe7959589947d954c3f5f9767f5
|
7
|
+
data.tar.gz: 2d22310db8af5bc2752d835995e33b6dba06a186b3927aa0a59373d5dc978ff01858032689f775dc20b356aaa3d6a9cc7601442e369b729ac8d2a4394532d574
|
@@ -338,11 +338,18 @@ module EffectiveBootstrapHelper
|
|
338
338
|
id = "dropdown-#{effective_bootstrap_unique_id}"
|
339
339
|
div_class = ['dropdown-menu', *('dropdown-menu-right' if right), *('dropdown-groups' if groups)].join(' ')
|
340
340
|
|
341
|
+
# Render content
|
342
|
+
@_nav_mode = :dropdown
|
343
|
+
content = capture(&block)
|
344
|
+
@_nav_mode = nil
|
345
|
+
|
346
|
+
return ''.html_safe if content.blank?
|
347
|
+
|
341
348
|
content_tag(:li, class: 'nav-item dropdown') do
|
342
349
|
content_tag(:a, class: 'nav-link dropdown-toggle', href: '#', id: id, role: 'button', 'data-toggle': 'dropdown', 'aria-haspopup': true, 'aria-expanded': false) do
|
343
350
|
label.html_safe
|
344
351
|
end + content_tag(:div, class: div_class, 'aria-labelledby': id) do
|
345
|
-
|
352
|
+
content
|
346
353
|
end
|
347
354
|
end
|
348
355
|
end
|
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.12.
|
4
|
+
version: 0.12.5
|
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-03-
|
11
|
+
date: 2023-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|