jap_mag 1.3.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b850ccbb3eac7dc384577b6c2ce95d7b18c0ffa22ebd04294096bc3001246b0e
4
- data.tar.gz: 5332af9362d27205463d1a7c78adcc5a03ef5acad767359a58d2063f59b574e2
3
+ metadata.gz: e12032e8112941ff8369025bf1756381d5a5b22a76e21292563929ec89782596
4
+ data.tar.gz: e43f8d23973ccb798833fa483cec7f836a64409583ebde40946492e16985519c
5
5
  SHA512:
6
- metadata.gz: c6ecf33bb821133560e31c256e4d27ad6bf809f08ab8e90867c0e0ed59e8c5ecdc5eed70efb55788fc9abc563c32e24a62a04ab4c194df3a434f9340439a437b
7
- data.tar.gz: 68075ad517340aaeeaa4e88635b918a09d03374306b1ebcfd743d03a888b82d439c115cd359748dc831e7a7d86268c57b755c752cdc87d66ea557553946e53f9
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
- link = link_to("#{content_tag(:span, scope[:text])} (#{scope[:count]})".html_safe, url, class: 'nav-link')
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: klass.join(' '))
77
+ concat content_tag(:li, link, class: 'nav-item')
78
78
  end
79
79
  end
80
80
  end
@@ -1,3 +1,3 @@
1
1
  module JapMag
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jap_mag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DING Yu