nfg_ui 0.9.18.2 → 0.9.18.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nfg_ui/components/patterns/carousel.rb +10 -1
- 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: b287c554e7af2675d77fc603b76701fd82e0e4146051ac3aeef56255325cac38
|
4
|
+
data.tar.gz: 13a04dee8908d23e96a2fabe55b6b9a2b26e9550826cc3ae61f0ed8c533e93eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aade3d6eab931bb993d78dad3b28d9eefe1faa86fa044821d651e22a2e2c209c01891f8c388e53fb08f9d3dfa5cb974f4bb0174b90c12276de36a408fc8aba8
|
7
|
+
data.tar.gz: 01dadc7832c5a53aa1ff8d8d138520aa0559a3c817475720d8c50c2d585fbbb7b7f4d70457137af295f454753704b873185d58fd922da17ed5001b909f8dff9e
|
@@ -13,7 +13,7 @@ module NfgUi
|
|
13
13
|
|
14
14
|
def render
|
15
15
|
content_tag(:div, html_options) do
|
16
|
-
content_tag(:div, class:
|
16
|
+
content_tag(:div, class: carousel_inner_css_classes) do
|
17
17
|
concat((block_given? ? yield : body))
|
18
18
|
if controls
|
19
19
|
concat(NfgUi::Components::Elements::CarouselControl.new({ control: :next, carousel: "##{id}" }, view_context).render)
|
@@ -25,6 +25,15 @@ module NfgUi
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def carousel_inner_css_classes
|
32
|
+
[
|
33
|
+
'carousel-inner',
|
34
|
+
('pb-3' if indicators > 0)
|
35
|
+
].join(' ').squish
|
36
|
+
end
|
28
37
|
end
|
29
38
|
end
|
30
39
|
end
|
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.9.18.
|
4
|
+
version: 0.9.18.3
|
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: 2019-09-
|
12
|
+
date: 2019-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|