pagers 3.1.3 → 3.1.4

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: a751e338425d9aa35fa02cf20c6a63ff7f5ced55
4
- data.tar.gz: 7557f2d43d27c4c7f022682d157f0f0fc0d3f852
3
+ metadata.gz: 9260ef804461e66bc094f64808928bf0dea5d9f9
4
+ data.tar.gz: 871649f6023386bddb6a29466f4e426a43450dae
5
5
  SHA512:
6
- metadata.gz: 939b72c514842184f2273faaed2c797670ffe517e74d4d31649aef493d1f57de0200359b7db91db4b5c3928abb384687c1e2657d907c010f1f846b8c7b52106f
7
- data.tar.gz: 3122ffd6db6c05f96486313bee7a4613b3480f7f10a3c2cf5f684f3b5f0e367c613e5f8ea0274ef2b1ea3701433cc5d88e023b1d85b88a8ef2179beb0ddf0c84
6
+ metadata.gz: 565e9d2eaf31f2c0e87423512ae5bb6d4721248ae34c15cbb37f1629499c0103602e5030b0e18f7804fad524ced420f4512f1fdb93fef78c3473fc489094614d
7
+ data.tar.gz: 3f36303125c2e45b76f8c6e4b9218b7a5acab6ab84bcc92661fdf54d754c61c663b46a4e10be3162cc311bf7d07bbdb3be451f088794f3d9ec7f38601ba3e2fb
@@ -5,7 +5,7 @@
5
5
  <%= link_to t('pager.first'), page_path(collection.first_page, options) %>
6
6
  </li>
7
7
  <li class="previous">
8
- <%= link_to t('pager.previous'), page_path(collection.previous_page, options) %>
8
+ <%= link_to t('pager.previous'), page_path(collection.previous_page, options), rel: 'prev' %>
9
9
  </li>
10
10
  <% end %>
11
11
  <% if less_pages %>
@@ -15,7 +15,13 @@
15
15
  <% end %>
16
16
  <% pages.each do |page| %>
17
17
  <li class="page<%= ' current' if collection.current_page == page %>">
18
- <%= link_to page, page_path(page, options) %>
18
+ <%=
19
+ link_to(
20
+ page,
21
+ page_path(page, options),
22
+ rel: (collection.next_page == page ? 'next' : collection.previous_page == page ? 'prev' : nil)
23
+ )
24
+ %>
19
25
  </li>
20
26
  <% end %>
21
27
  <% if more_pages %>
@@ -25,7 +31,7 @@
25
31
  <% end %>
26
32
  <% if collection.next_page %>
27
33
  <li class="next">
28
- <%= link_to t('pager.next'), page_path(collection.next_page, options) %>
34
+ <%= link_to t('pager.next'), page_path(collection.next_page, options), rel: 'next' %>
29
35
  </li>
30
36
  <li class="last">
31
37
  <%= link_to t('pager.last'), page_path(collection.last_page, options) %>
@@ -1,5 +1,5 @@
1
1
  module Pagers
2
2
 
3
- VERSION = '3.1.3'
3
+ VERSION = '3.1.4'
4
4
 
5
5
  end
File without changes
data/test/dummy/bin/rails CHANGED
File without changes
data/test/dummy/bin/rake CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Museways
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-05 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails