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 +4 -4
- data/app/views/pagers/_main.html.erb +9 -3
- data/lib/pagers/version.rb +1 -1
- data/test/dummy/bin/bundle +0 -0
- data/test/dummy/bin/rails +0 -0
- data/test/dummy/bin/rake +0 -0
- 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: 9260ef804461e66bc094f64808928bf0dea5d9f9
|
4
|
+
data.tar.gz: 871649f6023386bddb6a29466f4e426a43450dae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
<%=
|
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) %>
|
data/lib/pagers/version.rb
CHANGED
data/test/dummy/bin/bundle
CHANGED
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.
|
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-
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|