Skip to content

Commit

Permalink
add pagination to title in component: Sortitions
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbaraOliveira13 committed Jan 17, 2025
1 parent 21ed815 commit c1a4c38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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) %>

Expand Down
2 changes: 2 additions & 0 deletions decidim-sortitions/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ en:
other: Sortitions
decidim:
components:
pagination:
page_title: "%{component_name} - Page %{current_page} of %{total_pages}"
sortitions:
actions:
comment: Comment
Expand Down

0 comments on commit c1a4c38

Please sign in to comment.