pagy 4.7.0 → 4.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/config/pagy.rb +1 -1
- data/lib/javascripts/pagy.js +1 -1
- data/lib/locales/bg.yml +1 -1
- data/lib/locales/bs.yml +1 -1
- data/lib/locales/ca.yml +1 -1
- data/lib/locales/cs.yml +1 -1
- data/lib/locales/da.yml +1 -1
- data/lib/locales/de.yml +1 -1
- data/lib/locales/en.yml +1 -1
- data/lib/locales/es.yml +1 -1
- data/lib/locales/fr.yml +1 -1
- data/lib/locales/hr.yml +1 -1
- data/lib/locales/id.yml +1 -1
- data/lib/locales/it.yml +1 -1
- data/lib/locales/ja.yml +1 -1
- data/lib/locales/km.yml +1 -1
- data/lib/locales/ko.yml +1 -1
- data/lib/locales/nb.yml +1 -1
- data/lib/locales/nl.yml +1 -1
- data/lib/locales/pl.yml +1 -1
- data/lib/locales/pt-BR.yml +1 -1
- data/lib/locales/pt.yml +1 -1
- data/lib/locales/ru.yml +1 -1
- data/lib/locales/sr.yml +1 -1
- data/lib/locales/sv-SE.yml +1 -1
- data/lib/locales/sv.yml +1 -1
- data/lib/locales/sw.yml +1 -1
- data/lib/locales/tr.yml +1 -1
- data/lib/locales/uk.yml +1 -1
- data/lib/locales/zh-CN.yml +1 -1
- data/lib/locales/zh-HK.yml +1 -1
- data/lib/locales/zh-TW.yml +2 -2
- data/lib/pagy.rb +1 -1
- data/lib/pagy/extras/materialize.rb +6 -6
- data/lib/pagy/extras/uikit.rb +7 -17
- 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: 67bf0b9d4c13c5ca1e0698f6e4fd928e07eaad4fd3e8dfe2ef8d95612e5eb8d9
|
4
|
+
data.tar.gz: 40fae4aadf56256885e813847a0df296bb857ea48ed629a49d6fd20092fe4dbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2408b52d3e5cf97ea5d32cc2da809f2e9e38802767555b3ecd94a7947d9e52adf45e623c992acf2c1a12dcacf081f01823bc0e59fd97a6c980d68d08af1b8ea
|
7
|
+
data.tar.gz: d0ffa69cc1cff5e0d5eb767e77d8abe63fe1df47f19c6535677c481c87ea3bd0fdc81042571fb02b3015b72377d9a7b9aa738bce0353d8e8ec62120608927ffe
|
data/lib/config/pagy.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Pagy initializer file (4.7.
|
3
|
+
# Pagy initializer file (4.7.1)
|
4
4
|
# Customize only what you really need and notice that Pagy works also without any of the following lines.
|
5
5
|
# Should you just cherry pick part of this file, please maintain the require-order of the extras
|
6
6
|
|
data/lib/javascripts/pagy.js
CHANGED
data/lib/locales/bg.yml
CHANGED
@@ -17,6 +17,6 @@ bg:
|
|
17
17
|
single_page: "Показани са <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Показани са %{item_name} <b>%{from}-%{to}</b> от <b>%{count}</b> общо"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Страница %{page_input}
|
20
|
+
combo_nav_js: "<label>Страница %{page_input} от %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Покажи %{items_input} %{item_name} на страница</label>"
|
data/lib/locales/bs.yml
CHANGED
@@ -19,6 +19,6 @@ bs:
|
|
19
19
|
single_page: "Prikazuje se <b>%{count}</b> %{item_name}"
|
20
20
|
multiple_pages: "Prikaz %{item_name} <b>%{from}-%{to}</b> od <b>%{count}</b> ukupno"
|
21
21
|
|
22
|
-
combo_nav_js: "<label>Stranica %{page_input}
|
22
|
+
combo_nav_js: "<label>Stranica %{page_input} od %{pages}</label>"
|
23
23
|
|
24
24
|
items_selector_js: "<label>Prikaži %{items_input} %{item_name} po stranici</label>"
|
data/lib/locales/ca.yml
CHANGED
@@ -17,6 +17,6 @@ ca:
|
|
17
17
|
single_page: "Mostrant <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Mostrant %{item_name} <b>%{from}-%{to}</b> de <b>%{count}</b> en total"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Pàgina %{page_input}
|
20
|
+
combo_nav_js: "<label>Pàgina %{page_input} de %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Mostra %{items_input} %{item_name} per pàgina</label>"
|
data/lib/locales/cs.yml
CHANGED
@@ -17,6 +17,6 @@ cs:
|
|
17
17
|
single_page: "Zobrazeno <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Zobrazeno %{item_name} <b>%{from}-%{to}</b> z <b>%{count}</b> celkem"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Strana %{page_input}
|
20
|
+
combo_nav_js: "<label>Strana %{page_input} z %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Zobrazit %{items_input} %{item_name} na stránce</label>"
|
data/lib/locales/da.yml
CHANGED
@@ -17,6 +17,6 @@ da:
|
|
17
17
|
single_page: "Viser <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Viser %{item_name} <b>%{from}-%{to}</b> til <b>%{count}</b> totalt"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Side %{page_input}
|
20
|
+
combo_nav_js: "<label>Side %{page_input} of %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Antal %{items_input} %{item_name} per side</label>"
|
data/lib/locales/de.yml
CHANGED
@@ -17,6 +17,6 @@ de:
|
|
17
17
|
single_page: "Zeige <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Zeige %{item_name} <b>%{from}-%{to}</b> von <b>%{count}</b> gesamt"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Seite %{page_input}
|
20
|
+
combo_nav_js: "<label>Seite %{page_input} von %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Zeige %{items_input} %{item_name} pro Seite</label>"
|
data/lib/locales/en.yml
CHANGED
@@ -17,6 +17,6 @@ en:
|
|
17
17
|
single_page: "Displaying <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Displaying %{item_name} <b>%{from}-%{to}</b> of <b>%{count}</b> in total"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Page %{page_input}
|
20
|
+
combo_nav_js: "<label>Page %{page_input} of %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Show %{items_input} %{item_name} per page</label>"
|
data/lib/locales/es.yml
CHANGED
@@ -17,6 +17,6 @@ es:
|
|
17
17
|
single_page: "Mostrando %{count} %{item_name}"
|
18
18
|
multiple_pages: "Mostrando %{item_name} %{from}-%{to} de %{count} en total"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Página %{page_input}
|
20
|
+
combo_nav_js: "<label>Página %{page_input} de %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Mostrar %{items_input} %{item_name} por página</label>"
|
data/lib/locales/fr.yml
CHANGED
@@ -17,6 +17,6 @@ fr:
|
|
17
17
|
single_page: "Affichage de <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Affichage des %{item_name} <b>%{from} à %{to}</b> sur <b>%{count}</b> au total"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Page %{page_input}
|
20
|
+
combo_nav_js: "<label>Page %{page_input} sur %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Afficher %{items_input} %{item_name} par page</label>"
|
data/lib/locales/hr.yml
CHANGED
@@ -19,6 +19,6 @@ hr:
|
|
19
19
|
single_page: "Prikazuje se <b>%{count}</b> %{item_name}"
|
20
20
|
multiple_pages: "Prikaz %{item_name} <b>%{from}-%{to}</b> od <b>%{count}</b> ukupno"
|
21
21
|
|
22
|
-
combo_nav_js: "<label>Stranica %{page_input}
|
22
|
+
combo_nav_js: "<label>Stranica %{page_input} od %{pages}</label>"
|
23
23
|
|
24
24
|
items_selector_js: "<label>Prikaži %{items_input} %{item_name} po stranici</label>"
|
data/lib/locales/id.yml
CHANGED
@@ -15,6 +15,6 @@ id:
|
|
15
15
|
single_page: "Menampilkan <b>%{count}</b> %{item_name}"
|
16
16
|
multiple_pages: "Menampilkan %{item_name} <b>%{from}-%{to}</b> dari total <b>%{count}</b>"
|
17
17
|
|
18
|
-
combo_nav_js: "<label>Halaman %{page_input}
|
18
|
+
combo_nav_js: "<label>Halaman %{page_input} dari %{pages}</label>"
|
19
19
|
|
20
20
|
items_selector_js: "<label>Tampilkan %{items_input} %{item_name} per halaman</label>"
|
data/lib/locales/it.yml
CHANGED
@@ -17,6 +17,6 @@ it:
|
|
17
17
|
single_page: "Visualizzazione di <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Visualizzazione %{item_name} <b>%{from}-%{to}</b> di <b>%{count}</b> in totale"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Pagina %{page_input}
|
20
|
+
combo_nav_js: "<label>Pagina %{page_input} di %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Mostra %{items_input} %{item_name} per pagina</label>"
|
data/lib/locales/ja.yml
CHANGED
@@ -15,6 +15,6 @@ ja:
|
|
15
15
|
single_page: "<b>%{count}</b> 件の%{item_name}"
|
16
16
|
multiple_pages: "<b>%{count}</b> 件中 <b>%{from}-%{to}</b> 件目の%{item_name}を表示中"
|
17
17
|
|
18
|
-
combo_nav_js: "<label>%{page_input}
|
18
|
+
combo_nav_js: "<label>%{page_input} / %{pages} ページ</label>"
|
19
19
|
|
20
20
|
items_selector_js: "<label>%{items_input} 件ずつ表示</label>"
|
data/lib/locales/km.yml
CHANGED
@@ -14,6 +14,6 @@ km:
|
|
14
14
|
single_page: "បង្ហាញ <b>%{count}</b> %{item_name}"
|
15
15
|
multiple_pages: "បង្ហាញ %{item_name} <b>%{from}-%{to}</b> នៃ <b>%{count}</b> ជាចំនួនសរុប"
|
16
16
|
|
17
|
-
combo_nav_js: "<label>ទំព័រ %{page_input}
|
17
|
+
combo_nav_js: "<label>ទំព័រ %{page_input} នៃ %{pages}</label>"
|
18
18
|
|
19
19
|
items_selector_js: "<label>បង្ហាញ %{items_input} %{item_name} ក្នុង ១ ទំព័រ</label>"
|
data/lib/locales/ko.yml
CHANGED
@@ -15,6 +15,6 @@ ko:
|
|
15
15
|
single_page: "<b>%{count}</b>개의 %{item_name} 표시됨"
|
16
16
|
multiple_pages: "총 <b>%{count}</b>개의 %{item_name} 중 <b>%{from}-%{to}</b>"
|
17
17
|
|
18
|
-
combo_nav_js: "<label>총 %{pages} 중 %{page_input}
|
18
|
+
combo_nav_js: "<label>총 %{pages} 중 %{page_input} 페이지</label>"
|
19
19
|
|
20
20
|
items_selector_js: "<label>페이지 당 %{items_input}개 표시%</label>"
|
data/lib/locales/nb.yml
CHANGED
@@ -17,6 +17,6 @@ nb:
|
|
17
17
|
single_page: "Viser <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Viser %{item_name} <b>%{from}-%{to}</b> av totalt <b>%{count}</b>"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Side %{page_input}
|
20
|
+
combo_nav_js: "<label>Side %{page_input} av %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Vis %{items_input} %{item_name} per side</label>"
|
data/lib/locales/nl.yml
CHANGED
@@ -17,6 +17,6 @@ nl:
|
|
17
17
|
single_page: "Toont <b>%{count}</b> %{item_name}"
|
18
18
|
multiple_pages: "Toont <b>%{from}-%{to}</b> %{item_name} van <b>%{count}</b> in totaal"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Pagina %{page_input}
|
20
|
+
combo_nav_js: "<label>Pagina %{page_input} van %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Toont %{items_input} %{item_name} per pagina</label>"
|
data/lib/locales/pl.yml
CHANGED
@@ -19,6 +19,6 @@ pl:
|
|
19
19
|
single_page: "Wyświetlono <b>%{count}</b> %{item_name}"
|
20
20
|
multiple_pages: "Wyświetlono %{item_name} <b>%{from}-%{to}</b> z wszystkich <b>%{count}</b>"
|
21
21
|
|
22
|
-
combo_nav_js: "<label>Strona %{page_input}
|
22
|
+
combo_nav_js: "<label>Strona %{page_input} z %{pages}</label>"
|
23
23
|
|
24
24
|
items_selector_js: "<label>Pokaż %{items_input} %{item_name} na stronie</label>"
|
data/lib/locales/pt-BR.yml
CHANGED
@@ -17,6 +17,6 @@ pt-BR:
|
|
17
17
|
single_page: "Mostrando %{count} %{item_name}"
|
18
18
|
multiple_pages: "Mostrando %{item_name} %{from}-%{to} do total de %{count}"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Página %{page_input}
|
20
|
+
combo_nav_js: "<label>Página %{page_input} de %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Mostrar %{items_input} %{item_name} por página</label>"
|
data/lib/locales/pt.yml
CHANGED
@@ -17,6 +17,6 @@ pt:
|
|
17
17
|
single_page: "Mostrando %{count} %{item_name}"
|
18
18
|
multiple_pages: "Mostrando %{item_name} %{from}-%{to} de um total de %{count}"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Página %{page_input}
|
20
|
+
combo_nav_js: "<label>Página %{page_input} de %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Mostrar %{items_input} %{item_name} por página</label>"
|
data/lib/locales/ru.yml
CHANGED
@@ -19,6 +19,6 @@ ru:
|
|
19
19
|
single_page: "<b>%{count}</b> %{item_name}"
|
20
20
|
multiple_pages: "Всего <b>%{count}</b> %{item_name}, показаны с <b>%{from}</b> по <b>%{to}</b>"
|
21
21
|
|
22
|
-
combo_nav_js: "<label>Страница %{page_input}
|
22
|
+
combo_nav_js: "<label>Страница %{page_input} из %{pages}</label>"
|
23
23
|
|
24
24
|
items_selector_js: "<label>Показать %{items_input} %{item_name} на странице</label>"
|
data/lib/locales/sr.yml
CHANGED
@@ -18,6 +18,6 @@ sr:
|
|
18
18
|
single_page: "Приказује се <b>%{count}</b> %{item_name}"
|
19
19
|
multiple_pages: "Приказ %{item_name} <b>%{from}-%{to}</b> од <b>%{count}</b> укупно"
|
20
20
|
|
21
|
-
combo_nav_js: "<label>Страниca %{page_input}
|
21
|
+
combo_nav_js: "<label>Страниca %{page_input} од %{pages}</label>"
|
22
22
|
|
23
23
|
items_selector_js: "<label>Прикажи %{items_input} %{item_name} по страниcи</label>"
|
data/lib/locales/sv-SE.yml
CHANGED
@@ -18,6 +18,6 @@ sv-SE:
|
|
18
18
|
single_page: "Visar <b>%{count}</b> %{item_name}"
|
19
19
|
multiple_pages: "Visar %{item_name} <b>%{from}-%{to}</b> av <b>%{count}</b> totalt"
|
20
20
|
|
21
|
-
combo_nav_js: "<label>Sida %{page_input}
|
21
|
+
combo_nav_js: "<label>Sida %{page_input} av %{pages}</label>"
|
22
22
|
|
23
23
|
items_selector_js: "<label>Visa %{items_input} %{item_name} per sida</label>"
|
data/lib/locales/sv.yml
CHANGED
@@ -18,6 +18,6 @@ sv:
|
|
18
18
|
single_page: "Visar <b>%{count}</b> %{item_name}"
|
19
19
|
multiple_pages: "Visar %{item_name} <b>%{from}-%{to}</b> av <b>%{count}</b> totalt"
|
20
20
|
|
21
|
-
combo_nav_js: "<label>Sida %{page_input}
|
21
|
+
combo_nav_js: "<label>Sida %{page_input} av %{pages}</label>"
|
22
22
|
|
23
23
|
items_selector_js: "<label>Visa %{items_input} %{item_name} per sida</label>"
|
data/lib/locales/sw.yml
CHANGED
@@ -17,6 +17,6 @@ sw:
|
|
17
17
|
single_page: "Inaonyesha %{item_name} <b>%{count}</b>"
|
18
18
|
multiple_pages: "Inaonyesha %{item_name} <b>%{from}-%{to}</b> ya <b>%{count}</b> kwa jumla"
|
19
19
|
|
20
|
-
combo_nav_js: "<label>Kurasa %{page_input}
|
20
|
+
combo_nav_js: "<label>Kurasa %{page_input} ya %{pages}</label>"
|
21
21
|
|
22
22
|
items_selector_js: "<label>Onyesha %{items_input} %{item_name} kwa kila ukurasa</label>"
|
data/lib/locales/tr.yml
CHANGED
@@ -15,6 +15,6 @@ tr:
|
|
15
15
|
single_page: "Toplam <b>%{count}</b> %{item_name} gösteriliyor"
|
16
16
|
multiple_pages: "<b>%{count}</b> %{item_name} içerisinden <b>%{from}-%{to}</b> kadarı gösteriliyor"
|
17
17
|
|
18
|
-
combo_nav_js: "<label>Sayfa %{page_input}
|
18
|
+
combo_nav_js: "<label>Sayfa %{page_input} / %{pages}</label>"
|
19
19
|
|
20
20
|
items_selector_js: "<label>Sayfada %{items_input} %{item_name} göster</label>"
|
data/lib/locales/uk.yml
CHANGED
@@ -19,6 +19,6 @@ uk:
|
|
19
19
|
single_page: "<b>%{count}</b> %{item_name}"
|
20
20
|
multiple_pages: "Загалом <b>%{count}</b> %{item_name}, показані з <b>%{from}</b> по <b>%{to}</b>"
|
21
21
|
|
22
|
-
combo_nav_js: "<label>Сторінка %{page_input}
|
22
|
+
combo_nav_js: "<label>Сторінка %{page_input} з %{pages}</label>"
|
23
23
|
|
24
24
|
items_selector_js: "<label>Показати %{items_input} %{item_name} на сторінці</label>"
|
data/lib/locales/zh-CN.yml
CHANGED
@@ -15,6 +15,6 @@ zh-CN:
|
|
15
15
|
single_page: "显示<b>%{count}</b> 项%{item_name}"
|
16
16
|
multiple_pages: "共 <b>%{count}</b> 项%{item_name},显示 <b>%{from}-%{to}</b>"
|
17
17
|
|
18
|
-
combo_nav_js: "<label>第 %{page_input}
|
18
|
+
combo_nav_js: "<label>第 %{page_input} / %{pages} 页</label>"
|
19
19
|
|
20
20
|
items_selector_js: "<label>每页显示 %{items_input} 条%</label>"
|
data/lib/locales/zh-HK.yml
CHANGED
@@ -15,6 +15,6 @@ zh-HK:
|
|
15
15
|
single_page: "顯示 <b>%{count}</b> %{item_name}"
|
16
16
|
multiple_pages: "共 <b>%{count}</b> %{item_name},顯示 <b>%{from}-%{to}</b>"
|
17
17
|
|
18
|
-
combo_nav_js: "<label>第 %{page_input}
|
18
|
+
combo_nav_js: "<label>第 %{page_input} / %{pages} 頁</label>"
|
19
19
|
|
20
20
|
items_selector_js: "<label>每頁顯示 %{items_input} 記錄</label>"
|
data/lib/locales/zh-TW.yml
CHANGED
@@ -15,6 +15,6 @@ zh-TW:
|
|
15
15
|
single_page: "顯示 <b>%{count}</b> 項%{item_name}"
|
16
16
|
multiple_pages: "共 <b>%{count}</b> 項%{item_name},顯示 <b>%{from}-%{to}</b>"
|
17
17
|
|
18
|
-
combo_nav_js: "<label>第 %{page_input}
|
18
|
+
combo_nav_js: "<label>第 %{page_input} / %{pages} 頁</label>"
|
19
19
|
|
20
|
-
items_selector_js: "<label>每頁顯示 %{items_input} 項%{item_name}"
|
20
|
+
items_selector_js: "<label>每頁顯示 %{items_input} 項%{item_name}</label>"
|
data/lib/pagy.rb
CHANGED
@@ -46,18 +46,18 @@ class Pagy
|
|
46
46
|
link = pagy_link_proc(pagy, link_extra: link_extra)
|
47
47
|
p_page = pagy.page
|
48
48
|
p_pages = pagy.pages
|
49
|
-
style = ' style="vertical-align: middle
|
50
|
-
input = %(<input type="number" class="browser-default" min="1" max="#{p_pages}" value="#{p_page}" style="
|
49
|
+
style = ' style="vertical-align: middle"'
|
50
|
+
input = %(<input type="number" class="browser-default" min="1" max="#{p_pages}" value="#{p_page}" style="text-align: center; width: #{p_pages.to_s.length+1}rem;">)
|
51
51
|
|
52
|
-
%(<
|
52
|
+
%(<ul#{p_id} class="pagy-materialize-combo-nav-js pagination chip" role="navigation" aria-label="pager" style="padding-right: 0" #{
|
53
53
|
pagy_json_attr pagy, :combo_nav, p_page, pagy_marked_link(link)
|
54
54
|
}>#{
|
55
55
|
pagy_materialize_prev_html pagy, link, style
|
56
|
-
}<
|
56
|
+
}<li class="pagy-combo-input">#{
|
57
57
|
pagy_t 'pagy.combo_nav_js', page_input: input, count: p_page, pages: p_pages
|
58
|
-
}</
|
58
|
+
}</li>#{
|
59
59
|
pagy_materialize_next_html pagy, link, style
|
60
|
-
}</ul
|
60
|
+
}</ul>)
|
61
61
|
end
|
62
62
|
|
63
63
|
private
|
data/lib/pagy/extras/uikit.rb
CHANGED
@@ -44,29 +44,19 @@ class Pagy
|
|
44
44
|
link = pagy_link_proc(pagy, link_extra: link_extra)
|
45
45
|
p_page = pagy.page
|
46
46
|
p_pages = pagy.pages
|
47
|
-
input = %(<input type="number" min="1" max="#{p_pages}" value="#{p_page}"
|
47
|
+
input = %(<input type="number" min="1" max="#{p_pages}" value="#{p_page}" style="text-align: center; width: #{p_pages.to_s.length+1}rem;">)
|
48
48
|
|
49
|
-
%(<
|
49
|
+
%(<ul#{p_id} class="pagy-uikit-combo-nav-js uk-button-group uk-pagination uk-flex-center" #{
|
50
50
|
pagy_json_attr pagy, :combo_nav, p_page, pagy_marked_link(link)
|
51
51
|
}>#{
|
52
|
-
|
53
|
-
|
54
|
-
else
|
55
|
-
%(<button class="uk-button uk-button-default" disabled>#{pagy_t 'pagy.nav.prev'}</button>)
|
56
|
-
end
|
57
|
-
}<div class="uk-text-middle uk-margin-left uk-margin-right">#{
|
52
|
+
pagy_uikit_prev_html pagy, link
|
53
|
+
}<li>#{
|
58
54
|
pagy_t 'pagy.combo_nav_js', page_input: input, count: p_page, pages: p_pages
|
59
|
-
}</
|
60
|
-
|
61
|
-
|
62
|
-
else
|
63
|
-
%(<button class="uk-button uk-button-default" disabled>#{pagy_t 'pagy.nav.next'}</button>)
|
64
|
-
end
|
65
|
-
}</div>)
|
55
|
+
}</li>#{
|
56
|
+
pagy_uikit_next_html pagy, link
|
57
|
+
}</ul>)
|
66
58
|
end
|
67
59
|
|
68
|
-
|
69
|
-
|
70
60
|
private
|
71
61
|
|
72
62
|
def pagy_uikit_prev_html(pagy, link)
|
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: 4.7.
|
4
|
+
version: 4.7.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: 2021-05-
|
11
|
+
date: 2021-05-13 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,
|