jap_mag 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/jap_mag_widgets_helper.rb +4 -4
- data/lib/jap_mag/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e12032e8112941ff8369025bf1756381d5a5b22a76e21292563929ec89782596
|
4
|
+
data.tar.gz: e43f8d23973ccb798833fa483cec7f836a64409583ebde40946492e16985519c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6279e898283afdc86c595b23f9cb460fd4060bee96a7c2c0e7c4b597794660bb602c7cf6e734a07daaf525d69456dd04395afcfdc9adf784aa8455390d5ae4bd
|
7
|
+
data.tar.gz: '01790e45450d4eab622000f333619716bcc2e5fc1cc3c4538d39ca9745032b2d599af2ad5178793e6260c57235282965fb2e5d04ec5d6585d8585f5488fb63cb'
|
@@ -66,15 +66,15 @@ module JapMagWidgetsHelper
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def bootstrap_scope_button scopes, options = {}
|
69
|
-
content_tag :ul, class: "nav-tabs simple-tabs" do
|
69
|
+
content_tag :ul, class: "nav nav-tabs simple-tabs" do
|
70
70
|
scopes.collect do |scope|
|
71
71
|
url = eval("#{options[:path].to_s}(scope: :#{scope[:key]})")
|
72
72
|
current = ((params[:scope] == scope[:key].to_s) or (scope[:default] and scope[:default] == true and params[:scope].blank?))
|
73
|
-
|
74
|
-
klass = %w(nav-item)
|
73
|
+
klass = %w(nav-link)
|
75
74
|
klass << :active if current
|
75
|
+
link = link_to("#{content_tag(:span, scope[:text])} (#{scope[:count]})".html_safe, url, class: klass.join(' '))
|
76
76
|
|
77
|
-
concat content_tag(:li, link, class:
|
77
|
+
concat content_tag(:li, link, class: 'nav-item')
|
78
78
|
end
|
79
79
|
end
|
80
80
|
end
|
data/lib/jap_mag/version.rb
CHANGED