will_paginate_bootstrp 0.3.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/will_paginate_bootstrp/renderer.rb +6 -10
- data/lib/will_paginate_bootstrp/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: 0316acada1f0f1cbd50f7f17db58c49953f69b109c931fac8ab9bd462c194702
|
4
|
+
data.tar.gz: 1779f08f809f3bd13b85d9b8a21f5f5fb1d2353eac06e9e0d5d1f99ddf0b8d9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9a60ed4e8670ebe109e1370de09309c315f4d3f9c60fa5e803646e9bf8f8a84d036b367dc1cc5fb7b0bd55e65da0d47990e3610adf44954b30b48a3ba8f8f1
|
7
|
+
data.tar.gz: 75c9766997835ae645f4f6f4c49e9da607ad121621b8079c658656b8dacb163b19ef29c40d1364d093c63eccd3594603f96d59f81b0548022081c413dee4dcca
|
@@ -26,19 +26,15 @@ module WillPaginateBootstrp
|
|
26
26
|
protected
|
27
27
|
|
28
28
|
def page_number(page)
|
29
|
-
if page == current_page
|
30
|
-
|
31
|
-
|
32
|
-
tag(:li, link(page, page, link_options.merge(class: 'page-link', rel: rel_value(page))), class: 'page-item')
|
33
|
-
end
|
29
|
+
return tag(:li, tag(:span, page, class: 'page-link'), class: 'page-item active') if page == current_page
|
30
|
+
|
31
|
+
tag(:li, link(page, page, link_options.merge(class: 'page-link', rel: rel_value(page))), class: 'page-item')
|
34
32
|
end
|
35
33
|
|
36
34
|
def previous_or_next_page(page, text, classname)
|
37
|
-
if page
|
38
|
-
|
39
|
-
|
40
|
-
tag(:li, tag(:span, text, class: classname), class: 'page-item disabled')
|
41
|
-
end
|
35
|
+
return tag(:li, link(text, page, link_options.merge(class: classname)), class: 'page-item') if page
|
36
|
+
|
37
|
+
tag(:li, tag(:span, text, class: classname), class: 'page-item disabled')
|
42
38
|
end
|
43
39
|
|
44
40
|
def gap
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate_bootstrp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergii Demianchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: will_paginate
|