pagy 0.19.0 → 0.19.1
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/lib/config/pagy.rb +2 -2
- data/lib/locales/pagy.yml +23 -0
- data/lib/pagy.rb +1 -1
- data/lib/pagy/extras/bulma.rb +1 -0
- data/lib/pagy/extras/foundation.rb +2 -2
- data/lib/pagy/extras/trim.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49b0fb6295766ee5a4272b21ac33cba767e8f2b0b0aa9b419f9ce436b4b2cd9a
|
4
|
+
data.tar.gz: 1036ef5fc880a856423baf0442bb16ef6e21d8dc91696182aebbf9a4eae77ecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8259eade988ebec0c2d0c7edba17721e7b88c9238ecbcd84213be41a97c7570f7b4a6b29c2f9f20cdacd7f20d43076d70cb87b6575ded375b447aa5e9821ddf
|
7
|
+
data.tar.gz: 0b7796b7e7b673c11696990ec90cf9b62d454e5a21696ab0116ca0372ccbc3cc503f6d03ab55837af382bc6f8b50c2c3ee50531a335d92f8851fab80bae3ba6a
|
data/lib/config/pagy.rb
CHANGED
@@ -41,11 +41,11 @@
|
|
41
41
|
# See https://ddnexus.github.io/pagy/extras/materialize
|
42
42
|
# require 'pagy/extras/materialize'
|
43
43
|
|
44
|
-
# Semantic: Nav
|
44
|
+
# Semantic: Nav, responsive and compact helpers for Semantic UI pagination
|
45
45
|
# See https://ddnexus.github.io/pagy/extras/semantic
|
46
46
|
# require 'pagy/extras/semantic'
|
47
47
|
|
48
|
-
#
|
48
|
+
# Breakpoints var used by the responsive nav helpers
|
49
49
|
# See https://ddnexus.github.io/pagy/extras/navs#breakpoints
|
50
50
|
# Pagy::VARS[:breakpoints] = { 0 => [1,2,2,1], 350 => [2,3,3,2], 550 => [3,4,4,3] } # example of width/size pairs
|
51
51
|
|
data/lib/locales/pagy.yml
CHANGED
@@ -23,6 +23,29 @@ en:
|
|
23
23
|
items:
|
24
24
|
show: "Show"
|
25
25
|
items: "items per page"
|
26
|
+
es:
|
27
|
+
pagy:
|
28
|
+
nav:
|
29
|
+
prev: "‹ Prev"
|
30
|
+
next: "Siguiente ›"
|
31
|
+
gap: "…"
|
32
|
+
current: "Estás en la página"
|
33
|
+
info:
|
34
|
+
single_page:
|
35
|
+
zero: "Sin resultados"
|
36
|
+
one: "Mostrando 1 %{item_name}"
|
37
|
+
other: "Mostrando %{count} %{item_name}"
|
38
|
+
multiple_pages: "Mostrando %{item_name}s %{from}-%{to} de %{count} en total"
|
39
|
+
item_name:
|
40
|
+
zero: "ítems"
|
41
|
+
one: "ítem"
|
42
|
+
other: "ítems"
|
43
|
+
compact:
|
44
|
+
page: "Página"
|
45
|
+
of: "de"
|
46
|
+
items:
|
47
|
+
show: "Mostrar"
|
48
|
+
items: "ítems por página"
|
26
49
|
tr:
|
27
50
|
pagy:
|
28
51
|
nav:
|
data/lib/pagy.rb
CHANGED
data/lib/pagy/extras/bulma.rb
CHANGED
@@ -6,7 +6,7 @@ require 'pagy/extras/shared'
|
|
6
6
|
class Pagy
|
7
7
|
module Frontend
|
8
8
|
|
9
|
-
# Pagination for
|
9
|
+
# Pagination for Foundation: it returns the html with the series of links to the pages
|
10
10
|
def pagy_nav_foundation(pagy)
|
11
11
|
html, link, p_prev, p_next = +'', pagy_link_proc(pagy), pagy.prev, pagy.next
|
12
12
|
|
@@ -23,7 +23,7 @@ class Pagy
|
|
23
23
|
%(<nav class="pagy-nav-foundation" role="navigation" aria-label="Pagination"><ul class="pagination">#{html}</ul></nav>)
|
24
24
|
end
|
25
25
|
|
26
|
-
# Compact pagination for
|
26
|
+
# Compact pagination for Foundation: it returns the html with the series of links to the pages
|
27
27
|
# we use a numeric input tag to set the page and the Pagy.compact javascript to navigate
|
28
28
|
def pagy_nav_compact_foundation(pagy, id=caller(1,1)[0].hash)
|
29
29
|
html, link, p_prev, p_next, p_page, p_pages = +'', pagy_link_proc(pagy), pagy.prev, pagy.next, pagy.page, pagy.pages
|
data/lib/pagy/extras/trim.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Domizio Demichelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Agnostic pagination in plain ruby: it works with any framework, ORM
|
14
14
|
and DB type, with all kinds of collections, even pre-paginated, scopes, Arrays,
|