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: a26936633589ef2e153a0e049c3fa824a1fcc76dcadc9d07e20b1fb8603328c8
4
- data.tar.gz: 9a6b89211ee2177686cc617b4a283935e6c22130388f342a5207f6e1a7fbac0e
3
+ metadata.gz: 5057fc2e6d9bc2551fbb8fadbe71c02c4820eeba89e94e9fc4c9fdaacaad1c4d
4
+ data.tar.gz: c96c4f16ccc862615b682cef25cd70ddb2828dd86662439512b8a95d9a03d780
5
5
  SHA512:
6
- metadata.gz: c111066e4ccaa58c9369bc153abd4951aa20cc935f5c7c96f8e5a6888e4492bfaa0d0be182c73820bf7687fa3d20337aa02773ecb07108bcbba47a8bec667d66
7
- data.tar.gz: 05d73aa6f587cf17970441864442f075e211b53f356a9c8e91bf66bcbc79a6e6c1f34aaa9e183112ada7611962d5e2e8eb027ab79c24465865048d008c19ca51
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
- @_nav_mode = :dropdown; yield; @_nav_mode = nil
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.12.4'.freeze
2
+ VERSION = '0.12.6'.freeze
3
3
  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
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-10 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails