will_paginate-bootstrap4 0.2.0 → 0.2.2
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 +4 -4
- data/README.md +3 -8
- data/config/initializers/will_paginate.rb +4 -5
- data/lib/will_paginate-bootstrap4/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 894e4d292531fab89620af9bee81baebc1b42445
|
|
4
|
+
data.tar.gz: 999bed9583b5fd19239799ad59a11eed692ae0b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb4e1d9b543a04fcd889a8a7e70ed4ce6f33a1460e5afcf57ef80809e5a547007be7f30ce0ee4b1616740aba76b2d6b9e3adb87ce80664bd3bb4ea859bb3e780
|
|
7
|
+
data.tar.gz: 2d9088797cd827377dc2a311a03c41497ed03bb55f6468b38ce19908be64f02902d807ead40047933bebec2087d25a9c0896fed27715e8ffb7a9f868f02af1bb
|
data/README.md
CHANGED
|
@@ -22,19 +22,14 @@ The following options are available (in addition to the options available in wil
|
|
|
22
22
|
|
|
23
23
|
:list_classes = ['pagination'] # Array of classes
|
|
24
24
|
:aria_label = 'Page Navigation' # The aria label to use in the Nav tag
|
|
25
|
+
:previous_label = '«' # Previous page label
|
|
26
|
+
:next_label = '»' # Next page label
|
|
25
27
|
|
|
26
28
|
For example, to place the navigation section to the far right of the page, use this in your view:
|
|
27
29
|
|
|
28
30
|
<%= will_paginate @clients, list_classes: %w(pagination justify-content-end) %>
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
.pagination {
|
|
32
|
-
margin-top: 10px;
|
|
33
|
-
align-items: center;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
Copyright (c) 2016-2017 [Ivan Palamarchuk](https://github.com/delef) released under the MIT license
|
|
32
|
+
Copyright (c) 2016-2018 [Ivan Palamarchuk](https://github.com/delef) released under the MIT license
|
|
38
33
|
|
|
39
34
|
[wp]: http://github.com/mislav/will_paginate
|
|
40
35
|
[bs]: http://v4-alpha.getbootstrap.com/
|
|
@@ -9,9 +9,8 @@ module WillPaginate
|
|
|
9
9
|
options = options.symbolize_keys
|
|
10
10
|
options[:renderer] ||= BootstrapLinkRenderer
|
|
11
11
|
options[:list_classes] ||= ['pagination']
|
|
12
|
-
options[:
|
|
13
|
-
options[:
|
|
14
|
-
options[:next_label] ||= '»'
|
|
12
|
+
options[:previous_label] ||= '←'
|
|
13
|
+
options[:next_label] ||= '→'
|
|
15
14
|
|
|
16
15
|
super(collection, options)
|
|
17
16
|
end
|
|
@@ -29,8 +28,8 @@ module WillPaginate
|
|
|
29
28
|
end
|
|
30
29
|
end.join(@options[:link_separator])
|
|
31
30
|
|
|
32
|
-
list_wrapper = tag :ul, list_items, class: @options[:list_classes].join(
|
|
33
|
-
tag :nav, list_wrapper
|
|
31
|
+
list_wrapper = tag :ul, list_items, class: @options[:list_classes].join(' ').to_s
|
|
32
|
+
tag :nav, list_wrapper
|
|
34
33
|
end
|
|
35
34
|
|
|
36
35
|
def container_attributes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: will_paginate-bootstrap4
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Palamarchuk
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01-
|
|
11
|
+
date: 2018-01-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: will_paginate
|