From c1a4c38ad64611ee35b156948c4dcb84b9bd4c47 Mon Sep 17 00:00:00 2001 From: barbara oliveira Date: Fri, 17 Jan 2025 13:07:19 +0100 Subject: [PATCH] add pagination to title in component: Sortitions --- .../app/views/decidim/sortitions/sortitions/index.html.erb | 5 ++++- decidim-sortitions/config/locales/en.yml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/decidim-sortitions/app/views/decidim/sortitions/sortitions/index.html.erb b/decidim-sortitions/app/views/decidim/sortitions/sortitions/index.html.erb index 01691c66f4e3a..6d61bbc0b71c6 100644 --- a/decidim-sortitions/app/views/decidim/sortitions/sortitions/index.html.erb +++ b/decidim-sortitions/app/views/decidim/sortitions/sortitions/index.html.erb @@ -1,6 +1,9 @@ <% add_decidim_meta_tags( description: translated_attribute(current_component.participatory_space.try(:description)), - title: component_name, + title: t("decidim.components.pagination.page_title", + component_name: component_name, + current_page: @sortitions.current_page, + total_pages: @sortitions.total_pages ), url: sortitions_url, resource: current_component) %> diff --git a/decidim-sortitions/config/locales/en.yml b/decidim-sortitions/config/locales/en.yml index 3c13389549f7a..d03b6694aec69 100644 --- a/decidim-sortitions/config/locales/en.yml +++ b/decidim-sortitions/config/locales/en.yml @@ -18,6 +18,8 @@ en: other: Sortitions decidim: components: + pagination: + page_title: "%{component_name} - Page %{current_page} of %{total_pages}" sortitions: actions: comment: Comment