summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-11 00:53:53 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-11 00:53:53 +0200
commit876697bdff7e03d98a7a426895b4e5dcc07c5a88 (patch)
treec467325da4bef60f8831324f2bd8dcec59aecfc3 /config
parentab392d472c15eee3618cb7c02b2b4707151598b6 (diff)
Style admin pagination widget, add missing locale keys
Pagination had almost no styling, and its current-page selector never matched will_paginate's actual markup. Added chip-style page links, a solid current-page indicator, and distinct disabled states for Previous/Next. Previous/Next/gap rendered as empty, unlabeled elements -- will_paginate only ships English translations and this app defaults to German. Added previous_label/next_label/page_gap to en.yml and de.yml.
Diffstat (limited to 'config')
-rw-r--r--config/locales/de.yml9
-rw-r--r--config/locales/en.yml9
2 files changed, 18 insertions, 0 deletions
diff --git a/config/locales/de.yml b/config/locales/de.yml
index 2f08984..1f2222c 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -133,3 +133,12 @@ de:
133 less_than_or_equal_to: "must be less than or equal to {{count}}" 133 less_than_or_equal_to: "must be less than or equal to {{count}}"
134 odd: "must be odd" 134 odd: "must be odd"
135 even: "must be even" 135 even: "must be even"
136
137 will_paginate:
138 previous_label: "&#8592; Zurück"
139 previous_aria_label: "Vorherige Seite"
140 next_label: "Weiter &#8594;"
141 next_aria_label: "Nächste Seite"
142 page_gap: "&hellip;"
143 container_aria_label: "Seitennavigation"
144 page_aria_label: "Seite %{page}"
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 980a6b8..59c7304 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -19,3 +19,12 @@ en:
19 time: 19 time:
20 formats: 20 formats:
21 ccc: "%d %B, %Y %H:%M" 21 ccc: "%d %B, %Y %H:%M"
22
23 will_paginate:
24 previous_label: "&#8592; Previous"
25 previous_aria_label: "Previous page"
26 next_label: "Next &#8594;"
27 next_aria_label: "Next page"
28 page_gap: "&hellip;"
29 container_aria_label: "Pagination"
30 page_aria_label: "Page %{page}"