pagy 3.8.2 → 3.8.3
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 +1 -1
- data/lib/javascripts/pagy.js +1 -1
- data/lib/locales/pt.yml +22 -0
- data/lib/pagy.rb +1 -1
- data/lib/pagy/extras/navs.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5914b35c8067b8d14845b7d9436f7ca4790175d177eef5762f69e436add1f3c
|
|
4
|
+
data.tar.gz: e3215ee3eea2b59db1af94ff525e7b1643ba64c55564c7e19971b54f5a2c05b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71ce505f853364f27a64088497d70b0c4a4c4621cb060d719200e76a5f623bcfc4c182b9b716a2ba6005670caf512e717dcf51be13cb181b7b112b2cfc4e95b6
|
|
7
|
+
data.tar.gz: 2401ef28c166a69a83567d5fa4f92587be93d2ded49f8261d582acb4df62dff41f5a7773da48a37d26faedf50f7f6da39585beac0fd22fc9ee5419e32c8d1a99
|
data/lib/config/pagy.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
# Pagy initializer file (3.8.
|
|
4
|
+
# Pagy initializer file (3.8.3)
|
|
5
5
|
# Customize only what you really need and notice that Pagy works also without any of the following lines.
|
|
6
6
|
# Should you just cherry pick part of this file, please maintain the require-order of the extras
|
|
7
7
|
|
data/lib/javascripts/pagy.js
CHANGED
data/lib/locales/pt.yml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
|
|
2
|
+
|
|
3
|
+
pt:
|
|
4
|
+
pagy:
|
|
5
|
+
|
|
6
|
+
item_name:
|
|
7
|
+
one: "item"
|
|
8
|
+
other: "itens"
|
|
9
|
+
|
|
10
|
+
nav:
|
|
11
|
+
prev: "‹ Anterior"
|
|
12
|
+
next: "Próximo ›"
|
|
13
|
+
gap: "…"
|
|
14
|
+
|
|
15
|
+
info:
|
|
16
|
+
no_items: "Sem resultados"
|
|
17
|
+
single_page: "Mostrando %{count} %{item_name}"
|
|
18
|
+
multiple_pages: "Mostrando %{item_name} %{from}-%{to} de um total de %{count}"
|
|
19
|
+
|
|
20
|
+
combo_nav_js: "Página %{page_input} de %{pages}"
|
|
21
|
+
|
|
22
|
+
items_selector_js: "Mostrar %{items_input} %{item_name} por página"
|
data/lib/pagy.rb
CHANGED
data/lib/pagy/extras/navs.rb
CHANGED
|
@@ -24,7 +24,7 @@ class Pagy
|
|
|
24
24
|
def pagy_combo_nav_js(pagy, id=pagy_id)
|
|
25
25
|
link, p_prev, p_next, p_page, p_pages = pagy_link_proc(pagy), pagy.prev, pagy.next, pagy.page, pagy.pages
|
|
26
26
|
|
|
27
|
-
html = EMPTY + %(<nav id="#{id}" class="pagy-combo-nav-js
|
|
27
|
+
html = EMPTY + %(<nav id="#{id}" class="pagy-combo-nav-js pagination" role="navigation" aria-label="pager">)
|
|
28
28
|
html << (p_prev ? %(<span class="page prev">#{link.call p_prev, pagy_t('pagy.nav.prev'), 'aria-label="previous"'}</span> )
|
|
29
29
|
: %(<span class="page prev disabled">#{pagy_t('pagy.nav.prev')}</span> ))
|
|
30
30
|
input = %(<input type="number" min="1" max="#{p_pages}" value="#{p_page}" style="padding: 0; text-align: center; width: #{p_pages.to_s.length+1}rem;">)
|
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: 3.8.
|
|
4
|
+
version: 3.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Domizio Demichelis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-07-23 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,
|
|
@@ -39,6 +39,7 @@ files:
|
|
|
39
39
|
- lib/locales/nl.yml
|
|
40
40
|
- lib/locales/pl.yml
|
|
41
41
|
- lib/locales/pt-BR.yml
|
|
42
|
+
- lib/locales/pt.yml
|
|
42
43
|
- lib/locales/ru.yml
|
|
43
44
|
- lib/locales/sv-SE.yml
|
|
44
45
|
- lib/locales/sv.yml
|