nfg_ui 0.14.0.1 → 0.14.1
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/lib/nfg_ui/bootstrap/components/breadcrumb_item.rb +16 -0
- data/lib/nfg_ui/bootstrap/components/nav.rb +5 -0
- data/lib/nfg_ui/bootstrap/components/nav_item.rb +5 -0
- data/lib/nfg_ui/bootstrap/components/nav_link.rb +1 -1
- data/lib/nfg_ui/components/elements/breadcrumb_item.rb +2 -0
- data/lib/nfg_ui/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: c851caf37f6b78564aa4b996813793929963203213e26fd7205b91dc279a4c0d
|
4
|
+
data.tar.gz: 110b4b5310ec1112bf23538714d74810dffb8105cc3b3ea286a33f700bc140a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 987b695fe7dca4c9ba4954d5d42927bffb4d2bb5d0b3706d939b2ce57bbc5cb6314b53c958ff2fa93788d4219609179d5c4124a299ffffa5b14106f9504f0e72
|
7
|
+
data.tar.gz: cc261877cd8bea365512858527847b312e13608a0701f393068ec95d0c98f955ab47d94215e66d35ee166407ba75e733d3105b04f1c4252703c917c27b4c05e1
|
@@ -13,6 +13,22 @@ module NfgUi
|
|
13
13
|
:breadcrumb
|
14
14
|
end
|
15
15
|
|
16
|
+
def render
|
17
|
+
if href
|
18
|
+
# remove href from options hash so it does not
|
19
|
+
# get added to the parent element -- and instead
|
20
|
+
# gets stored so we can use it to build the
|
21
|
+
# inserted <a> tag.
|
22
|
+
delegated_href = options.delete(:href)
|
23
|
+
|
24
|
+
super do
|
25
|
+
view_context.link_to(body, delegated_href)
|
26
|
+
end
|
27
|
+
else
|
28
|
+
super
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
16
32
|
private
|
17
33
|
|
18
34
|
def base_element
|
data/lib/nfg_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nfg_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Roehm
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-05-
|
12
|
+
date: 2022-05-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|