pagy 7.0.11 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apps/calendar.ru +2196 -0
- data/lib/apps/demo.ru +452 -0
- data/lib/apps/rails.ru +205 -0
- data/lib/apps/repro.ru +168 -0
- data/lib/bin/pagy +83 -0
- data/lib/config/pagy.rb +6 -17
- data/lib/javascripts/pagy-dev.js +10 -10
- data/lib/javascripts/pagy-module.js +9 -9
- data/lib/javascripts/pagy.js +1 -1
- data/lib/locales/ar.yml +2 -2
- data/lib/locales/be.yml +4 -4
- data/lib/locales/bg.yml +4 -4
- data/lib/locales/bs.yml +4 -4
- data/lib/locales/ca.yml +4 -4
- data/lib/locales/ckb.yml +4 -4
- data/lib/locales/cs.yml +4 -4
- data/lib/locales/da.yml +4 -4
- data/lib/locales/de.yml +4 -4
- data/lib/locales/en.yml +4 -4
- data/lib/locales/es.yml +2 -2
- data/lib/locales/fr.yml +4 -4
- data/lib/locales/hr.yml +4 -4
- data/lib/locales/id.yml +4 -4
- data/lib/locales/it.yml +4 -4
- data/lib/locales/ja.yml +4 -4
- data/lib/locales/km.yml +4 -4
- data/lib/locales/ko.yml +4 -4
- data/lib/locales/nb.yml +4 -4
- data/lib/locales/nl.yml +4 -4
- data/lib/locales/nn.yml +4 -4
- data/lib/locales/pl.yml +4 -4
- data/lib/locales/pt-BR.yml +2 -2
- data/lib/locales/pt.yml +2 -2
- data/lib/locales/ru.yml +4 -4
- data/lib/locales/sr.yml +4 -4
- data/lib/locales/sv-SE.yml +4 -4
- data/lib/locales/sv.yml +4 -4
- data/lib/locales/sw.yml +4 -4
- data/lib/locales/ta.yml +4 -4
- data/lib/locales/tr.yml +4 -4
- data/lib/locales/uk.yml +4 -4
- data/lib/locales/vi.yml +4 -4
- data/lib/locales/zh-CN.yml +4 -4
- data/lib/locales/zh-HK.yml +4 -4
- data/lib/locales/zh-TW.yml +4 -4
- data/lib/optimist.rb +1022 -0
- data/lib/pagy/extras/bootstrap.rb +52 -63
- data/lib/pagy/extras/bulma.rb +48 -64
- data/lib/pagy/extras/foundation.rb +49 -61
- data/lib/pagy/extras/items.rb +21 -18
- data/lib/pagy/extras/{frontend_helpers.rb → js_tools.rb} +1 -1
- data/lib/pagy/extras/materialize.rb +52 -51
- data/lib/pagy/extras/pagy.rb +82 -0
- data/lib/pagy/extras/semantic.rb +46 -50
- data/lib/pagy/extras/trim.rb +12 -12
- data/lib/pagy/extras/uikit.rb +48 -49
- data/lib/pagy/frontend.rb +31 -48
- data/lib/pagy/url_helpers.rb +1 -2
- data/lib/pagy.rb +10 -9
- data/lib/stylesheets/pagy.css +19 -34
- data/lib/stylesheets/pagy.scss +17 -19
- data/lib/stylesheets/pagy.tailwind.css +21 -0
- metadata +25 -9
- data/lib/pagy/extras/navs.rb +0 -51
- data/lib/pagy/extras/support.rb +0 -40
- data/lib/stylesheets/pagy.tailwind.scss +0 -24
data/lib/locales/en.yml
CHANGED
@@ -15,7 +15,7 @@ en:
|
|
15
15
|
other: "items"
|
16
16
|
info:
|
17
17
|
no_items: "No %{item_name} found"
|
18
|
-
single_page: "Displaying
|
19
|
-
multiple_pages: "Displaying %{item_name}
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
18
|
+
single_page: "Displaying %{count} %{item_name}"
|
19
|
+
multiple_pages: "Displaying %{item_name} %{from}-%{to} of %{count} in total"
|
20
|
+
combo_nav_js: "Page %{page_input} of %{pages}"
|
21
|
+
items_selector_js: "Show %{items_input} %{item_name} per page"
|
data/lib/locales/es.yml
CHANGED
@@ -17,5 +17,5 @@ es:
|
|
17
17
|
no_items: "Sin resultados"
|
18
18
|
single_page: "Mostrando %{count} %{item_name}"
|
19
19
|
multiple_pages: "Mostrando %{item_name} %{from}-%{to} de %{count} en total"
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
20
|
+
combo_nav_js: "Página %{page_input} de %{pages}"
|
21
|
+
items_selector_js: "Mostrar %{items_input} %{item_name} por página"
|
data/lib/locales/fr.yml
CHANGED
@@ -15,7 +15,7 @@ fr:
|
|
15
15
|
other: "éléments"
|
16
16
|
info:
|
17
17
|
no_items: "Aucun %{item_name} trouvé"
|
18
|
-
single_page: "Affichage de
|
19
|
-
multiple_pages: "Affichage des %{item_name}
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
18
|
+
single_page: "Affichage de %{count} %{item_name}"
|
19
|
+
multiple_pages: "Affichage des %{item_name} %{from} à %{to} sur %{count} au total"
|
20
|
+
combo_nav_js: "Page %{page_input} sur %{pages}"
|
21
|
+
items_selector_js: "Afficher %{items_input} %{item_name} par page"
|
data/lib/locales/hr.yml
CHANGED
@@ -19,7 +19,7 @@ hr:
|
|
19
19
|
other: "stavki"
|
20
20
|
info:
|
21
21
|
no_items: "Nije pronađena %{item_name}"
|
22
|
-
single_page: "Prikazuje se
|
23
|
-
multiple_pages: "Prikaz %{item_name}
|
24
|
-
combo_nav_js: "
|
25
|
-
items_selector_js: "
|
22
|
+
single_page: "Prikazuje se %{count} %{item_name}"
|
23
|
+
multiple_pages: "Prikaz %{item_name} %{from}-%{to} od %{count} ukupno"
|
24
|
+
combo_nav_js: "Stranica %{page_input} od %{pages}"
|
25
|
+
items_selector_js: "Prikaži %{items_input} %{item_name} po stranici"
|
data/lib/locales/id.yml
CHANGED
@@ -13,7 +13,7 @@ id:
|
|
13
13
|
item_name: "item"
|
14
14
|
info:
|
15
15
|
no_items: "Tidak ditemukan %{item_name}"
|
16
|
-
single_page: "Menampilkan
|
17
|
-
multiple_pages: "Menampilkan %{item_name}
|
18
|
-
combo_nav_js: "
|
19
|
-
items_selector_js: "
|
16
|
+
single_page: "Menampilkan %{count} %{item_name}"
|
17
|
+
multiple_pages: "Menampilkan %{item_name} %{from}-%{to} dari total %{count}"
|
18
|
+
combo_nav_js: "Halaman %{page_input} dari %{pages}"
|
19
|
+
items_selector_js: "Tampilkan %{items_input} %{item_name} per halaman"
|
data/lib/locales/it.yml
CHANGED
@@ -15,7 +15,7 @@ it:
|
|
15
15
|
other: "elementi"
|
16
16
|
info:
|
17
17
|
no_items: "Nessun %{item_name} trovato"
|
18
|
-
single_page: "Visualizzazione di
|
19
|
-
multiple_pages: "Visualizzazione %{item_name}
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
18
|
+
single_page: "Visualizzazione di %{count} %{item_name}"
|
19
|
+
multiple_pages: "Visualizzazione %{item_name} %{from}-%{to} di %{count} in totale"
|
20
|
+
combo_nav_js: "Pagina %{page_input} di %{pages}"
|
21
|
+
items_selector_js: "Mostra %{items_input} %{item_name} per pagina"
|
data/lib/locales/ja.yml
CHANGED
@@ -13,7 +13,7 @@ ja:
|
|
13
13
|
item_name: "結果"
|
14
14
|
info:
|
15
15
|
no_items: "見つかりませんでした"
|
16
|
-
single_page: "
|
17
|
-
multiple_pages: "
|
18
|
-
combo_nav_js: "
|
19
|
-
items_selector_js: "
|
16
|
+
single_page: "%{count} 件の%{item_name}"
|
17
|
+
multiple_pages: "%{count} 件中 %{from}-%{to} 件目の%{item_name}を表示中"
|
18
|
+
combo_nav_js: "%{page_input} / %{pages} ページ"
|
19
|
+
items_selector_js: "%{items_input} 件ずつ表示"
|
data/lib/locales/km.yml
CHANGED
@@ -13,7 +13,7 @@ km:
|
|
13
13
|
item_name: "ធាតុ"
|
14
14
|
info:
|
15
15
|
no_items: "មិនមាន %{item_name} ទេ"
|
16
|
-
single_page: "បង្ហាញ
|
17
|
-
multiple_pages: "បង្ហាញ %{item_name}
|
18
|
-
combo_nav_js: "
|
19
|
-
items_selector_js: "
|
16
|
+
single_page: "បង្ហាញ %{count} %{item_name}"
|
17
|
+
multiple_pages: "បង្ហាញ %{item_name} %{from}-%{to} នៃ %{count} ជាចំនួនសរុប"
|
18
|
+
combo_nav_js: "ទំព័រ %{page_input} នៃ %{pages}"
|
19
|
+
items_selector_js: "បង្ហាញ %{items_input} %{item_name} ក្នុង ១ ទំព័រ"
|
data/lib/locales/ko.yml
CHANGED
@@ -13,7 +13,7 @@ ko:
|
|
13
13
|
item_name: "항목"
|
14
14
|
info:
|
15
15
|
no_items: "%{item_name} 없음"
|
16
|
-
single_page: "
|
17
|
-
multiple_pages: "총
|
18
|
-
combo_nav_js: "
|
19
|
-
items_selector_js: "
|
16
|
+
single_page: "%{count}개의 %{item_name} 표시됨"
|
17
|
+
multiple_pages: "총 %{count}개의 %{item_name} 중 %{from}-%{to}"
|
18
|
+
combo_nav_js: "총 %{pages} 중 %{page_input} 페이지"
|
19
|
+
items_selector_js: "페이지 당 %{items_input}개 표시%"
|
data/lib/locales/nb.yml
CHANGED
@@ -15,7 +15,7 @@ nb:
|
|
15
15
|
other: "resultater"
|
16
16
|
info:
|
17
17
|
no_items: "Ingen %{item_name} funnet"
|
18
|
-
single_page: "Viser
|
19
|
-
multiple_pages: "Viser %{item_name}
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
18
|
+
single_page: "Viser %{count} %{item_name}"
|
19
|
+
multiple_pages: "Viser %{item_name} %{from}-%{to} av totalt %{count}"
|
20
|
+
combo_nav_js: "Side %{page_input} av %{pages}"
|
21
|
+
items_selector_js: "Vis %{items_input} %{item_name} per side"
|
data/lib/locales/nl.yml
CHANGED
@@ -15,7 +15,7 @@ nl:
|
|
15
15
|
other: "stuks"
|
16
16
|
info:
|
17
17
|
no_items: "Geen %{item_name} gevonden"
|
18
|
-
single_page: "Toont
|
19
|
-
multiple_pages: "Toont
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
18
|
+
single_page: "Toont %{count} %{item_name}"
|
19
|
+
multiple_pages: "Toont %{from}-%{to} %{item_name} van %{count} in totaal"
|
20
|
+
combo_nav_js: "Pagina %{page_input} van %{pages}"
|
21
|
+
items_selector_js: "Toont %{items_input} %{item_name} per pagina"
|
data/lib/locales/nn.yml
CHANGED
@@ -15,7 +15,7 @@ nn:
|
|
15
15
|
other: "resultat"
|
16
16
|
info:
|
17
17
|
no_items: "Ingen %{item_name} funne"
|
18
|
-
single_page: "Viser
|
19
|
-
multiple_pages: "Viser %{item_name}
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
18
|
+
single_page: "Viser %{count} %{item_name}"
|
19
|
+
multiple_pages: "Viser %{item_name} %{from}-%{to} av totalt %{count}"
|
20
|
+
combo_nav_js: "Side %{page_input} av %{pages}"
|
21
|
+
items_selector_js: "Vis %{items_input} %{item_name} per side"
|
data/lib/locales/pl.yml
CHANGED
@@ -19,7 +19,7 @@ pl:
|
|
19
19
|
other: "elementów"
|
20
20
|
info:
|
21
21
|
no_items: "Nie znaleziono %{item_name}"
|
22
|
-
single_page: "Wyświetlono
|
23
|
-
multiple_pages: "Wyświetlono %{item_name}
|
24
|
-
combo_nav_js: "
|
25
|
-
items_selector_js: "
|
22
|
+
single_page: "Wyświetlono %{count} %{item_name}"
|
23
|
+
multiple_pages: "Wyświetlono %{item_name} %{from}-%{to} z wszystkich %{count}"
|
24
|
+
combo_nav_js: "Strona %{page_input} z %{pages}"
|
25
|
+
items_selector_js: "Pokaż %{items_input} %{item_name} na stronie"
|
data/lib/locales/pt-BR.yml
CHANGED
@@ -17,5 +17,5 @@ pt-BR:
|
|
17
17
|
no_items: "Sem resultados"
|
18
18
|
single_page: "Mostrando %{count} %{item_name}"
|
19
19
|
multiple_pages: "Mostrando %{item_name} %{from}-%{to} do total de %{count}"
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
20
|
+
combo_nav_js: "Página %{page_input} de %{pages}"
|
21
|
+
items_selector_js: "Mostrar %{items_input} %{item_name} por página"
|
data/lib/locales/pt.yml
CHANGED
@@ -17,5 +17,5 @@ pt:
|
|
17
17
|
no_items: "Sem resultados"
|
18
18
|
single_page: "Mostrando %{count} %{item_name}"
|
19
19
|
multiple_pages: "Mostrando %{item_name} %{from}-%{to} de um total de %{count}"
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
20
|
+
combo_nav_js: "Página %{page_input} de %{pages}"
|
21
|
+
items_selector_js: "Mostrar %{items_input} %{item_name} por página"
|
data/lib/locales/ru.yml
CHANGED
@@ -21,7 +21,7 @@ ru:
|
|
21
21
|
other: "записей"
|
22
22
|
info:
|
23
23
|
no_items: "Пока %{item_name} нет"
|
24
|
-
single_page: "
|
25
|
-
multiple_pages: "Всего
|
26
|
-
combo_nav_js: "
|
27
|
-
items_selector_js: "
|
24
|
+
single_page: "%{count} %{item_name}"
|
25
|
+
multiple_pages: "Всего %{count} %{item_name}, показаны с %{from} по %{to}"
|
26
|
+
combo_nav_js: "Страница %{page_input} из %{pages}"
|
27
|
+
items_selector_js: "Показать %{items_input} %{item_name} на странице"
|
data/lib/locales/sr.yml
CHANGED
@@ -19,7 +19,7 @@ sr:
|
|
19
19
|
other: "ставки"
|
20
20
|
info:
|
21
21
|
no_items: "Нema пронађених %{item_name}"
|
22
|
-
single_page: "Приказује се
|
23
|
-
multiple_pages: "Приказ %{item_name}
|
24
|
-
combo_nav_js: "
|
25
|
-
items_selector_js: "
|
22
|
+
single_page: "Приказује се %{count} %{item_name}"
|
23
|
+
multiple_pages: "Приказ %{item_name} %{from}-%{to} од %{count} укупно"
|
24
|
+
combo_nav_js: "Страниca %{page_input} од %{pages}"
|
25
|
+
items_selector_js: "Прикажи %{items_input} %{item_name} по страниcи"
|
data/lib/locales/sv-SE.yml
CHANGED
@@ -15,7 +15,7 @@ sv-SE:
|
|
15
15
|
other: "resultat"
|
16
16
|
info:
|
17
17
|
no_items: "Inga %{item_name} hittade"
|
18
|
-
single_page: "Visar
|
19
|
-
multiple_pages: "Visar %{item_name}
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
18
|
+
single_page: "Visar %{count} %{item_name}"
|
19
|
+
multiple_pages: "Visar %{item_name} %{from}-%{to} av %{count} totalt"
|
20
|
+
combo_nav_js: "Sida %{page_input} av %{pages}"
|
21
|
+
items_selector_js: "Visa %{items_input} %{item_name} per sida"
|
data/lib/locales/sv.yml
CHANGED
@@ -15,7 +15,7 @@ sv:
|
|
15
15
|
other: "resultat"
|
16
16
|
info:
|
17
17
|
no_items: "Inga %{item_name} hittade"
|
18
|
-
single_page: "Visar
|
19
|
-
multiple_pages: "Visar %{item_name}
|
20
|
-
combo_nav_js: "
|
21
|
-
items_selector_js: "
|
18
|
+
single_page: "Visar %{count} %{item_name}"
|
19
|
+
multiple_pages: "Visar %{item_name} %{from}-%{to} av %{count} totalt"
|
20
|
+
combo_nav_js: "Sida %{page_input} av %{pages}"
|
21
|
+
items_selector_js: "Visa %{items_input} %{item_name} per sida"
|
data/lib/locales/sw.yml
CHANGED
@@ -17,7 +17,7 @@ sw:
|
|
17
17
|
other: "vifaa"
|
18
18
|
info:
|
19
19
|
no_items: "Hamna %{item_name} vilivyopatikana"
|
20
|
-
single_page: "Inaonyesha %{item_name}
|
21
|
-
multiple_pages: "Inaonyesha %{item_name}
|
22
|
-
combo_nav_js: "
|
23
|
-
items_selector_js: "
|
20
|
+
single_page: "Inaonyesha %{item_name} %{count}"
|
21
|
+
multiple_pages: "Inaonyesha %{item_name} %{from}-%{to} ya %{count} kwa jumla"
|
22
|
+
combo_nav_js: "Kurasa %{page_input} ya %{pages}"
|
23
|
+
items_selector_js: "Onyesha %{items_input} %{item_name} kwa kila ukurasa"
|
data/lib/locales/ta.yml
CHANGED
@@ -17,7 +17,7 @@ ta:
|
|
17
17
|
other: "பதிவுகள்"
|
18
18
|
info:
|
19
19
|
no_items: "%{item_name} கிடைக்கவில்லை"
|
20
|
-
single_page: "
|
21
|
-
multiple_pages: "மொத்தம்
|
22
|
-
combo_nav_js: "
|
23
|
-
items_selector_js: "
|
20
|
+
single_page: "%{count} %{item_name} காட்டப்படுகின்றது"
|
21
|
+
multiple_pages: "மொத்தம் %{count} %{item_name}, காட்டப்படுபவை %{from}-%{to}"
|
22
|
+
combo_nav_js: "%{pages}-இல் %{page_input}-வது பக்கம்"
|
23
|
+
items_selector_js: "ஒரு பக்கத்திற்கு %{items_input} %{item_name} காட்டு"
|
data/lib/locales/tr.yml
CHANGED
@@ -13,7 +13,7 @@ tr:
|
|
13
13
|
item_name: "kayıt"
|
14
14
|
info:
|
15
15
|
no_items: "Hiç %{item_name} bulunamadı"
|
16
|
-
single_page: "Toplam
|
17
|
-
multiple_pages: "
|
18
|
-
combo_nav_js: "
|
19
|
-
items_selector_js: "
|
16
|
+
single_page: "Toplam %{count} %{item_name} gösteriliyor"
|
17
|
+
multiple_pages: "%{count} %{item_name} içerisinden %{from}-%{to} kadarı gösteriliyor"
|
18
|
+
combo_nav_js: "Sayfa %{page_input} / %{pages}"
|
19
|
+
items_selector_js: "Sayfada %{items_input} %{item_name} göster"
|
data/lib/locales/uk.yml
CHANGED
@@ -19,7 +19,7 @@ uk:
|
|
19
19
|
other: "записів"
|
20
20
|
info:
|
21
21
|
no_items: "Більше %{item_name} немає"
|
22
|
-
single_page: "
|
23
|
-
multiple_pages: "Загалом
|
24
|
-
combo_nav_js: "
|
25
|
-
items_selector_js: "
|
22
|
+
single_page: "%{count} %{item_name}"
|
23
|
+
multiple_pages: "Загалом %{count} %{item_name}, показані з %{from} по %{to}"
|
24
|
+
combo_nav_js: "Сторінка %{page_input} з %{pages}"
|
25
|
+
items_selector_js: "Показати %{items_input} %{item_name} на сторінці"
|
data/lib/locales/vi.yml
CHANGED
@@ -11,7 +11,7 @@ vi:
|
|
11
11
|
item_name: "kết quả"
|
12
12
|
info:
|
13
13
|
no_items: "Không tìm thấy %{item_name} nào"
|
14
|
-
single_page: "
|
15
|
-
multiple_pages: "Đang hiển thị
|
16
|
-
combo_nav_js: "
|
17
|
-
items_selector_js: "
|
14
|
+
single_page: "%{count} %{item_name}"
|
15
|
+
multiple_pages: "Đang hiển thị %{from}-%{to} trong tổng số %{count} %{item_name}"
|
16
|
+
combo_nav_js: "Trang %{page_input} trên %{pages}"
|
17
|
+
items_selector_js: "Hiển thị %{items_input} %{item_name} mỗi trang"
|
data/lib/locales/zh-CN.yml
CHANGED
@@ -13,7 +13,7 @@ zh-CN:
|
|
13
13
|
item_name: ""
|
14
14
|
info:
|
15
15
|
no_items: "项目未找到"
|
16
|
-
single_page: "
|
17
|
-
multiple_pages: "共
|
18
|
-
combo_nav_js: "
|
19
|
-
items_selector_js: "
|
16
|
+
single_page: "显示%{count} 项%{item_name}"
|
17
|
+
multiple_pages: "共 %{count} 项%{item_name},显示 %{from}-%{to}"
|
18
|
+
combo_nav_js: "第 %{page_input} / %{pages} 页"
|
19
|
+
items_selector_js: "每页显示 %{items_input} 条%"
|
data/lib/locales/zh-HK.yml
CHANGED
@@ -13,7 +13,7 @@ zh-HK:
|
|
13
13
|
item_name: ""
|
14
14
|
info:
|
15
15
|
no_items: "記錄未搵到"
|
16
|
-
single_page: "顯示
|
17
|
-
multiple_pages: "共
|
18
|
-
combo_nav_js: "
|
19
|
-
items_selector_js: "
|
16
|
+
single_page: "顯示 %{count} %{item_name}"
|
17
|
+
multiple_pages: "共 %{count} %{item_name},顯示 %{from}-%{to}"
|
18
|
+
combo_nav_js: "第 %{page_input} / %{pages} 頁"
|
19
|
+
items_selector_js: "每頁顯示 %{items_input} 記錄"
|
data/lib/locales/zh-TW.yml
CHANGED
@@ -13,7 +13,7 @@ zh-TW:
|
|
13
13
|
item_name: ""
|
14
14
|
info:
|
15
15
|
no_items: "沒找到項"
|
16
|
-
single_page: "顯示
|
17
|
-
multiple_pages: "共
|
18
|
-
combo_nav_js: "
|
19
|
-
items_selector_js: "
|
16
|
+
single_page: "顯示 %{count} 項%{item_name}"
|
17
|
+
multiple_pages: "共 %{count} 項%{item_name},顯示 %{from}-%{to}"
|
18
|
+
combo_nav_js: "第 %{page_input} / %{pages} 頁"
|
19
|
+
items_selector_js: "每頁顯示 %{items_input} 項%{item_name}"
|