jap_mag 1.2.0 → 1.3.0

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: e0486066bc341e7d28510b521154c81e83e6b7ed1de1bc03aaea92b9e73734ea
4
- data.tar.gz: 2db3d499a71c0469c575d6fa02529ee022b8c32d823024d2a0da20b720859c1a
3
+ metadata.gz: b850ccbb3eac7dc384577b6c2ce95d7b18c0ffa22ebd04294096bc3001246b0e
4
+ data.tar.gz: 5332af9362d27205463d1a7c78adcc5a03ef5acad767359a58d2063f59b574e2
5
5
  SHA512:
6
- metadata.gz: e646aaa50a6df7b833e4d85693dd8a2b5ade5060bb89659c379d3dd4100298f09c3a72c2a818ebe3e1421dbe3a7d93930b81a4cc5baf9f896b1346c2a0bda7b2
7
- data.tar.gz: c25814d5bb39750f1ac77c8a7dcda871bb91f9744569cb50732b9bf029a5010acc00fecc61b0f28c4e9b7e44032bee7460c277f28e3f08469d77c9c7aeae2e40
6
+ metadata.gz: c6ecf33bb821133560e31c256e4d27ad6bf809f08ab8e90867c0e0ed59e8c5ecdc5eed70efb55788fc9abc563c32e24a62a04ab4c194df3a434f9340439a437b
7
+ data.tar.gz: 68075ad517340aaeeaa4e88635b918a09d03374306b1ebcfd743d03a888b82d439c115cd359748dc831e7a7d86268c57b755c752cdc87d66ea557553946e53f9
@@ -66,13 +66,15 @@ module JapMagWidgetsHelper
66
66
  end
67
67
 
68
68
  def bootstrap_scope_button scopes, options = {}
69
- content_tag :ul, class: "nav nav-tabs" do
69
+ content_tag :ul, class: "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)
73
+ link = link_to("#{content_tag(:span, scope[:text])} (#{scope[:count]})".html_safe, url, class: 'nav-link')
74
+ klass = %w(nav-item)
75
+ klass << :active if current
74
76
 
75
- concat content_tag(:li, link, class: (current ? :active : nil))
77
+ concat content_tag(:li, link, class: klass.join(' '))
76
78
  end
77
79
  end
78
80
  end
@@ -1,3 +1,3 @@
1
1
  module JapMag
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jap_mag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DING Yu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate