From ac01156d00b24d14225c8e75979fb59bba69640d Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 4 Aug 2026 17:13:18 +0200 Subject: Tidy up headings on house keeping views - Collapse page headers into one action row with an optional hint - limit will_paginate to one row --- config/initializers/will_paginate.rb | 4 ++++ config/locales/de.yml | 9 ++++----- config/locales/en.yml | 9 ++++----- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 config/initializers/will_paginate.rb (limited to 'config') diff --git a/config/initializers/will_paginate.rb b/config/initializers/will_paginate.rb new file mode 100644 index 00000000..55c6d6e6 --- /dev/null +++ b/config/initializers/will_paginate.rb @@ -0,0 +1,4 @@ +Rails.application.config.to_prepare do + WillPaginate::ViewHelpers.pagination_options[:inner_window] = 1 + WillPaginate::ViewHelpers.pagination_options[:outer_window] = 0 +end diff --git a/config/locales/de.yml b/config/locales/de.yml index 6f8dd24a..a4181b9b 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -76,9 +76,9 @@ de: skip_last_comma: true will_paginate: - previous_label: "← Zurück" + previous_label: "←" previous_aria_label: "Vorherige Seite" - next_label: "Weiter →" + next_label: "→" next_aria_label: "Nächste Seite" page_gap: "…" container_aria_label: "Seitennavigation" @@ -337,6 +337,7 @@ de: action_log: "Letzte Änderungen dieses Kontos" index: title: "Benutzerkonten" + create_account: "Konto anlegen" create_editor: "Editor-Konto anlegen" create_redaktion: "Redaktions-Konto anlegen" create_admin: "Admin-Konto anlegen" @@ -374,14 +375,12 @@ de: toggle_preview: "Live-Vorschau umschalten" force_render: "Vorschau neu rendern" revisions: "Revisionen" + explain: "Was macht das?" "yes": "ja" "no": "nein" columns: - id: "ID" title: "Titel" - actions: "Aktionen" locked_by: "Gesperrt von" - rev: "Rev." path: "Pfad" preview: "Vorschau" name: "Name" diff --git a/config/locales/en.yml b/config/locales/en.yml index c7a728ab..4cf7f61f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -27,9 +27,9 @@ en: ccc_date: "%d %B, %Y" will_paginate: - previous_label: "← Previous" + previous_label: "←" previous_aria_label: "Previous page" - next_label: "Next →" + next_label: "→" next_aria_label: "Next page" page_gap: "…" container_aria_label: "Pagination" @@ -285,6 +285,7 @@ en: index: title: "User accounts" + create_account: "Create an account" create_editor: "Create editor account" create_redaktion: "Create Redaktion account" create_admin: "Create admin account" @@ -322,14 +323,12 @@ en: toggle_preview: "Toggle live preview" force_render: "Force preview render" revisions: "revisions" + explain: "What does this do?" "yes": "yes" "no": "no" columns: - id: "ID" title: "Title" - actions: "Actions" locked_by: "Locked by" - rev: "Rev." path: "Path" preview: "Preview" name: "Name" -- cgit v1.3