Skip to content

Commit

Permalink
refacto and move budgets components changes from 'budgets files' to '…
Browse files Browse the repository at this point in the history
…projects files'
  • Loading branch information
BarbaraOliveira13 committed Jan 31, 2025
1 parent 93b0dcc commit e6d7b96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class BudgetsController < Decidim::Budgets::ApplicationController

def index
redirect_to budget_projects_path(current_workflow.single) if current_workflow.single?
@projects = paginate(Decidim::Budgets::Project.joins(:budget).where(decidim_budgets_budgets: { component: current_component }))
end

def show
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<% add_decidim_meta_tags(
description: translated_attribute(current_component.participatory_space.try(:description)),
title: t("decidim.components.pagination.page_title",
component_name: translated_attribute(current_component.name),
current_page: @projects.current_page,
total_pages: @projects.total_pages ),
title: component_name,
url: budgets_url,
resource: current_component) %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<% add_decidim_meta_tags(
description: translated_attribute(budget.description),
title: t("decidim.budgets.projects.projects_for", name: translated_attribute(budget.title)),
title: t("decidim.components.pagination.page_title",
component_name: "#{t("decidim.budgets.projects.projects_for", name: translated_attribute(budget.title))}",
current_page: projects.current_page,
total_pages: projects.total_pages ),
url: budget_url(budget),
resource: budget) %>

Expand Down

0 comments on commit e6d7b96

Please sign in to comment.