From 129c69e63d7b89d12f268687f7a883ddfb0d3684 Mon Sep 17 00:00:00 2001 From: Simonas Date: Tue, 16 Apr 2024 16:46:39 +0200 Subject: [PATCH] Compatibilitiy of index.html.erb with the new voting booth view - implements the new view - removes the filters as before on the NY instance --- .../decidim/budgets/projects/index.html.erb | 46 +++++++++++++------ 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/app/views/decidim/budgets/projects/index.html.erb b/app/views/decidim/budgets/projects/index.html.erb index 82f174d..0e2d6e1 100644 --- a/app/views/decidim/budgets/projects/index.html.erb +++ b/app/views/decidim/budgets/projects/index.html.erb @@ -3,29 +3,47 @@ <% cell("decidim/budgets/limit_announcement", budget) %>
"> -
- <% if voting_finished? %> -

- <%= t("decidim.budgets.projects.projects_for", name: translated_attribute(budget.title)) %> -

- <% else %> - <%= render partial: "budget_summary" %> - <%= render partial: "cancel_voting_modal" %> - <% end %> -
-

- <%= render partial: "count" %> + <%= render partial: "budget_backButton" %> +

+ <%= t(".budget_title", budget_title_h2: translated_attribute(budget.title)) %>

+

+ <%= t(".budget_description_before") %> + <%= render partial: "count" %> + <%= t(".budget_description_after") %> +

+ <% unless voting_mode? %> + <%= render partial: "budget_summary" %> + <% end %>
-
+
<%= render partial: "projects" %>
+ +
+ <% if voting_finished? %> +

+ <%= t("decidim.budgets.projects.projects_for", name: translated_attribute(budget.title)) %> +

+ <% else %> + <% if voting_mode? %> + <%= render partial: "budget_summary" %> + <% end %> + <%= render partial: "cancel_voting_modal" %> + <% end %> +
+ <%= render partial: "decidim/budgets/partials/voting_help_modal" unless current_workflow.try(:disable_voting_instructions?) %> -<%= javascript_pack_tag("decidim_budgets_booth_voting") %> \ No newline at end of file +<%= javascript_pack_tag("decidim_budgets_booth_voting") %> + +