rails-bootstrap-tabs 0.2.1 → 0.2.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3433d4539468ccaf3998434f6532f6f4a57ec5fa
|
4
|
+
data.tar.gz: 7fbc7225aacfd7f7fab1b9eda403cd3095fc4460
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9314c3be5b9967e3dbf83635f4b54f240b1613ecae60ece6c76d966c450d6112f0fbf34dfa782411d916b1d6e3e6f1ad259f692a3bdbb64a6a84c4d38d81cc5a
|
7
|
+
data.tar.gz: d9413ccd665db40b8958ed2f1cddb63caca83362450ab1709ead4cf15f1d5697c5e51a365ae5b09275356f7cc704d89bbd953a0b1cc6e5e3ea511082c152dcc3
|
@@ -9,7 +9,7 @@ module RailsBootstrapTabs::Renderers
|
|
9
9
|
def render_tab(tab)
|
10
10
|
options = tab.options
|
11
11
|
content_tag :li, class: ('active' if options[:active]) do
|
12
|
-
link_to "##{options[:anchor]}", class:
|
12
|
+
link_to "##{options[:anchor]}", class: (options[:link_class] if options[:link_class]), data: { toggle: 'tab' } do
|
13
13
|
yield
|
14
14
|
end
|
15
15
|
end
|
@@ -10,8 +10,9 @@ module RailsBootstrapTabs::Renderers
|
|
10
10
|
options = tab.options
|
11
11
|
link_class = 'nav-link'
|
12
12
|
link_class << ' active' if options[:active]
|
13
|
+
link_class << " #{options[:link_class]}" if options[:link_class]
|
13
14
|
content_tag :li, class: 'nav-item' do
|
14
|
-
link_to "##{options[:anchor]}",
|
15
|
+
link_to "##{options[:anchor]}", data: { toggle: 'tab' }, class: link_class do
|
15
16
|
yield
|
16
17
|
end
|
17
18
|
end
|