will_paginate-foundation 5.3.4 → 6.2.0
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: 09c3635487775bedaf00290589eee13eb3c131b8
|
4
|
+
data.tar.gz: d0f0167486e23af19e97430f550d23bd16c2d487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a78b7181644777f1a3f5a516bc3359e074ee11ad1f8ae71282959f85e542d77544d4bcddb5e9c911e86fd4e7e8802713ea516c5f4350c958f3cd9c2daa9ed6dd
|
7
|
+
data.tar.gz: 77611e928882e841abf4d28c4f26a7ecd8d42ad10dd991cb5666f1a9ff787e3a25a76c9979498aa8e40224cfb10bf479335e07cbca84ff9b68b96ea0aede126f
|
@@ -27,7 +27,7 @@ module FoundationPagination
|
|
27
27
|
link_options = @options[:link_options] || {}
|
28
28
|
|
29
29
|
if page == current_page
|
30
|
-
tag :li,
|
30
|
+
tag :li, tag(:span, page), :class => ('current')
|
31
31
|
else
|
32
32
|
tag :li, link(page, page, link_options.merge(:rel => rel_value(page)))
|
33
33
|
end
|
@@ -38,22 +38,22 @@ module FoundationPagination
|
|
38
38
|
if page
|
39
39
|
tag :li, link(text, page, link_options), :class => classname
|
40
40
|
else
|
41
|
-
tag :li,
|
41
|
+
tag :li, tag(:span, text), :class => "%s disabled" % classname
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
45
|
def gap
|
46
|
-
tag :li,
|
46
|
+
tag :li, '', :class => 'ellipsis'
|
47
47
|
end
|
48
48
|
|
49
49
|
def previous_page
|
50
50
|
num = @collection.current_page > 1 && @collection.current_page - 1
|
51
|
-
previous_or_next_page(num, @options[:previous_label], "
|
51
|
+
previous_or_next_page(num, @options[:previous_label], "pagination-previous")
|
52
52
|
end
|
53
53
|
|
54
54
|
def next_page
|
55
55
|
num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
|
56
|
-
previous_or_next_page(num, @options[:next_label], "
|
56
|
+
previous_or_next_page(num, @options[:next_label], "pagination-next")
|
57
57
|
end
|
58
58
|
|
59
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate-foundation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Rangel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: will_paginate
|
@@ -66,8 +66,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
68
|
rubyforge_project: will_paginate-foundation
|
69
|
-
rubygems_version: 2.
|
69
|
+
rubygems_version: 2.5.1
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Integrates the Foundation pagination component with will_paginate
|
73
73
|
test_files: []
|
74
|
+
has_rdoc:
|