diff --git a/decidim-budgets/app/views/decidim/budgets/budgets/index.html.erb b/decidim-budgets/app/views/decidim/budgets/budgets/index.html.erb index fc750f61131d9..85b13056123d8 100644 --- a/decidim-budgets/app/views/decidim/budgets/budgets/index.html.erb +++ b/decidim-budgets/app/views/decidim/budgets/budgets/index.html.erb @@ -1,4 +1,6 @@ <%= render partial: "decidim/shared/component_announcement" %> +<% start_date, end_date = %w(start_date end_date).map { |attribute| current_component.participatory_space.try(attribute) } %> +<% instructions = translated_attribute(current_component.current_settings.landing_page_instructions).presence || translated_attribute(current_component.settings.landing_page_instructions)%>
@@ -6,23 +8,27 @@ <%= cell("decidim/budgets/budgets_list", current_workflow) %>
- <% if current_component.participatory_space.try(:start_date) %> + <% if start_date.present? || instructions.present? %>
-
-
-

<%= t(".date") %>

- <%= cell("decidim/date", { start: current_component.participatory_space.try(:start_date), end: current_component.participatory_space.try(:end_date), extra_classes: "extra__date-container--horizontal" }) %> + <% if start_date %> +
+
+

<%= t(".date") %>

+ <%= cell("decidim/date", { start: start_date, end: end_date, extra_classes: "extra__date-container--horizontal" }) %> +
-
+ <% end %> -
-
-

<%= t(".instructions") %>

-
- <%== translated_attribute(current_component.current_settings.landing_page_instructions).presence || translated_attribute(current_component.settings.landing_page_instructions) %> + <% if instructions.present? %> +
+
+

<%= t(".instructions") %>

+
+ <%== instructions %> +
-
+ <% end %>
<% end %>
diff --git a/decidim-budgets/config/locales/ca.yml b/decidim-budgets/config/locales/ca.yml index 0afd3c21b8dbb..34d8aecce9f63 100644 --- a/decidim-budgets/config/locales/ca.yml +++ b/decidim-budgets/config/locales/ca.yml @@ -103,6 +103,10 @@ ca: update: "%{user_name} ha actualitzat el projecte %{resource_name} de l'espai %{space_name}" budget: view: Veure tots els projectes de pressupost + budgets: + index: + date: Dates de votació + instructions: Com participar budget_information_modal: back_to: Tornar a %{component_name} close_modal: Tancar el modal @@ -116,6 +120,9 @@ ca: highlighted_cta: Votar a %{name} if_change_opinion: Si has canviat d'opinió, pots my_budgets: Els meus pressupostos + progress: Finalitza la votació + show: Veure més + vote: Vota voted_on: Has votat a %{links} limit_announcement: cant_vote: No pots votar a aquests pressupostos. Prova amb un altre pressupost . @@ -178,6 +185,7 @@ ca: vote_threshold_percent_rule: description: A quins projectes creus que hem de destinar el pressupost? Assigna com a mínim %{minimum_budget} als projectes que vulguis i vota segons les teves preferències per a definir el pressupost. instruction: "
  • Assigna com a mínim %{minimum_budget} als projectes que vulguis i vota segons les teves preferències per a definir el pressupost.
  • " + vote: Vota count: projects_count: one: 1 projecte diff --git a/decidim-budgets/config/locales/es.yml b/decidim-budgets/config/locales/es.yml index 5b909e1aa537d..dca46bd4c9191 100644 --- a/decidim-budgets/config/locales/es.yml +++ b/decidim-budgets/config/locales/es.yml @@ -103,6 +103,10 @@ es: update: "%{user_name} actualizó el proyecto %{resource_name} en el espacio %{space_name}" budget: view: Ver todos los proyectos de presupuesto + budgets: + index: + date: Fechas de votación + instructions: Cómo participar budget_information_modal: back_to: Volver a %{component_name} close_modal: Cierra el modal @@ -116,6 +120,9 @@ es: highlighted_cta: Votar en %{name} if_change_opinion: Si has cambiado de opinión, puedes my_budgets: Mis presupuestos + progress: Finaliza la votación + show: Ver más + vote: Vota voted_on: Has votado en %{links} limit_announcement: cant_vote: No puedes votar en este presupuesto. Prueba con otro presupuesto. @@ -178,6 +185,7 @@ es: vote_threshold_percent_rule: description: '¿A qué proyectos crees que deberíamos asignar el presupuesto? Asigna por lo menos %{minimum_budget} a los proyectos que desees y vota para definir el presupuesto.' instruction: "
  • Selecciona al menos %{minimum_budget} proyectos que quieras y vota de acuerdo a tus preferencias para definir el presupuesto.
  • " + vote: Vota count: projects_count: one: 1 proyecto