jap_mag 1.2.0 → 1.3.0
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 +5 -3
- data/lib/jap_mag/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b850ccbb3eac7dc384577b6c2ce95d7b18c0ffa22ebd04294096bc3001246b0e
|
4
|
+
data.tar.gz: 5332af9362d27205463d1a7c78adcc5a03ef5acad767359a58d2063f59b574e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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: (
|
77
|
+
concat content_tag(:li, link, class: klass.join(' '))
|
76
78
|
end
|
77
79
|
end
|
78
80
|
end
|
data/lib/jap_mag/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2020-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: will_paginate
|