snails 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snails/app.rb +2 -2
- data/snails.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 371557a9f0b4e59b037b3c1f909d7fd02156a3b1837ea80dd27c4fae09a39048
|
4
|
+
data.tar.gz: 2ddf52f55d0bbc5cc528b8a1dabd12477e24c1d9eb29cc7acdc6561dc5bee886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06ef4611aa643a777f9a7ee7e2b5d5b5ad318f7d97e32e3200082446af7df305a32a3063221a1e7b6e51a6e99438bf7cb5799b0bc450fe604faee48fea390d4
|
7
|
+
data.tar.gz: 4db65517e689b8c14a2565b76f00cc0ecf97c9eb7f086fdf40d4ab0b111cbbb2c62cf7372fd499a1b71941b2e7de13295da281814061288844474dc7e339f498
|
data/lib/snails/app.rb
CHANGED
@@ -368,8 +368,8 @@ module Snails
|
|
368
368
|
# remove page from path
|
369
369
|
path = (env['SCRIPT_NAME'] + path.gsub(/[?|&|\/]page[=|\/]\d+/,''))
|
370
370
|
|
371
|
-
prevlink = "<li><a href='#{path}#{get_page(-1)
|
372
|
-
nextlink = array.size != per_page ? "" : "<li><a href='#{path}#{get_page(1)
|
371
|
+
prevlink = "<li><a href='#{path}#{get_page(-1)}'>← Prev</a></li>"
|
372
|
+
nextlink = array.size != per_page ? "" : "<li><a href='#{path}#{get_page(1)}'>Next →</a></li>"
|
373
373
|
|
374
374
|
str = params[:page] ? prevlink + nextlink : nextlink
|
375
375
|
str != "" ? "<ul class='pager'>" + str + "</ul>" : ''
|
data/snails.gemspec
CHANGED