effective_bootstrap 0.12.4 → 0.12.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5057fc2e6d9bc2551fbb8fadbe71c02c4820eeba89e94e9fc4c9fdaacaad1c4d
|
4
|
+
data.tar.gz: c96c4f16ccc862615b682cef25cd70ddb2828dd86662439512b8a95d9a03d780
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3402af914d4bff7469ac90d4c29bfb2f291455f79c1cf1d3ef094d800ee852951de7a90bb1ddeee47e42c0b640db3912b9ae2ebf9a3fca1d4a4828d81640559d
|
7
|
+
data.tar.gz: f1c0aad75a47698dcedec4fdb48d1c3454fbb32f476fc50b08aa21306210a132c8e076e614bc4ac52b01de00405d973c7d3ca367fe12b7cacb004f30cdea2f16
|
@@ -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
|
@@ -163,7 +163,7 @@ module Effective
|
|
163
163
|
def build_purge
|
164
164
|
return ''.html_safe unless purge?
|
165
165
|
|
166
|
-
label = (multiple? ? 'Delete files on save' : 'Delete file on save')
|
166
|
+
label = (multiple? ? 'Delete existing files on save' : 'Delete existing file on save')
|
167
167
|
@builder.check_box('_purge', multiple: true, label: label, id: "#{tag_id}_purge", checked_value: name)
|
168
168
|
end
|
169
169
|
|
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.6
|
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
|