will_paginate-bootstrap4 0.2.0 → 0.2.2

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: d277a4245b4499ff9406778ae2f94a9bd4295d48
4
- data.tar.gz: 5c7f5097b7092b1697de8e1e5655580ad5748769
3
+ metadata.gz: 894e4d292531fab89620af9bee81baebc1b42445
4
+ data.tar.gz: 999bed9583b5fd19239799ad59a11eed692ae0b0
5
5
  SHA512:
6
- metadata.gz: f4b5ffc629f998af5a86a76fefdcff460cafd39cffa98c2c20a424d589f3109617987d5b1766b47a6b08c333b3ba470b7c95782709de2ea11d79360c9ffa7546
7
- data.tar.gz: 31b9ef288aa066b53245a535066889dadd91dddf3c467ba2e56f7cce2c398298287f1d00f6d63661430dd757e357d788b95920bc81686e63f2becd40be3dce8a
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
- #### Stylesheets
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[:aria_label] ||= 'Page Navigation'
13
- options[:previous_label] ||= '&laquo;'
14
- options[:next_label] ||= '&raquo;'
12
+ options[:previous_label] ||= '&larr;'
13
+ options[:next_label] ||= '&rarr;'
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(" ").to_s
33
- tag :nav, list_wrapper, 'aria-label': @options[:aria_label]
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
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module WillPaginate
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2018-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate