From 876697bdff7e03d98a7a426895b4e5dcc07c5a88 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 11 Jul 2026 00:53:53 +0200 Subject: 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. --- config/locales/de.yml | 9 +++++++++ config/locales/en.yml | 9 +++++++++ 2 files changed, 18 insertions(+) (limited to 'config') 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: less_than_or_equal_to: "must be less than or equal to {{count}}" odd: "must be odd" even: "must be even" + + will_paginate: + previous_label: "← Zurück" + previous_aria_label: "Vorherige Seite" + next_label: "Weiter →" + next_aria_label: "Nächste Seite" + page_gap: "…" + container_aria_label: "Seitennavigation" + 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: time: formats: ccc: "%d %B, %Y %H:%M" + + will_paginate: + previous_label: "← Previous" + previous_aria_label: "Previous page" + next_label: "Next →" + next_aria_label: "Next page" + page_gap: "…" + container_aria_label: "Pagination" + page_aria_label: "Page %{page}" -- cgit v1.3