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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65bb48e183ed8173ad0f697bbc5952480a1f5d4da07b05e8d4182a9442eb352c
4
- data.tar.gz: 4198d84a8d8e7d4110e114c22a1d3e6f2a72fa51cfc0c4a1b72f7dd365a43b31
3
+ metadata.gz: b287c554e7af2675d77fc603b76701fd82e0e4146051ac3aeef56255325cac38
4
+ data.tar.gz: 13a04dee8908d23e96a2fabe55b6b9a2b26e9550826cc3ae61f0ed8c533e93eb
5
5
  SHA512:
6
- metadata.gz: f2a86bf597f9cbedb99b1f9ae0f010d417398023d6018ee6bcdb0a69f789a13fbb3df053d7656780a9821ecac91a79f9f5708c6b9093cb618cac04781dfa0a90
7
- data.tar.gz: 025fe65f444a2f6279e495be8577df0ca5a6db2990452641ec7dc75f8c0ae84f63584b7ea2089e421a346f6a3832187d10089a5d76c7f577a068a716994360cf
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: 'carousel-inner pb-3') do
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NfgUi
4
- VERSION = '0.9.18.2'
4
+ VERSION = '0.9.18.3'
5
5
  end
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.2
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 00:00:00.000000000 Z
12
+ date: 2019-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap