- <%= link_to t("budgets.show.see_all_investments"),
+ <%= link_to t("budgets.investments_list.see_all"),
budget_investments_path(budget),
class: "button expanded" %>
diff --git a/config/locales/en/budgets.yml b/config/locales/en/budgets.yml
index b433d2749..e0b012d91 100644
--- a/config/locales/en/budgets.yml
+++ b/config/locales/en/budgets.yml
@@ -130,7 +130,6 @@ en:
random: random
confidence_score: highest rated
price: by price
- read_more: "Read more"
share:
message: "I created the investment project %{title} in %{handle}. Create an investment project too!"
show:
@@ -162,8 +161,6 @@ en:
confirm_group:
one: "You can only support investments in %{count} district. If you continue you cannot change the election of your district. Are you sure?"
other: "You can only support investments in %{count} districts. If you continue you cannot change the election of your district. Are you sure?"
- price_title: "Price"
- support_title: "Supports"
supports:
one: 1 support
other: "%{count} supports"
@@ -175,10 +172,15 @@ en:
change_ballot: "If you change your mind you can remove your votes in %{check_ballot} and start again."
check_ballot_link: "submit my ballot"
price: "Total budget"
+ investments_list:
+ investment:
+ price: "Price"
+ read_more: "Read more"
+ supports: "Supports"
+ see_all: "See all investments"
+ title: "List of investments"
show:
see_results: See results
- see_all_investments: "See all investments"
- investments_list: "List of investments"
results:
link: Results
page_title: "%{budget} - Results"
diff --git a/config/locales/es/budgets.yml b/config/locales/es/budgets.yml
index 8b4dd9d3d..d90b1def8 100644
--- a/config/locales/es/budgets.yml
+++ b/config/locales/es/budgets.yml
@@ -130,7 +130,6 @@ es:
random: Aleatorios
confidence_score: Mejor valorados
price: Por coste
- read_more: "Leer más"
share:
message: "He presentado el proyecto %{title} en %{handle}. ¡Presenta un proyecto tú también!"
show:
@@ -162,8 +161,6 @@ es:
confirm_group:
one: "Sólo puedes apoyar proyectos en %{count} distrito. Si sigues adelante no podrás cambiar la elección de este distrito. ¿Estás seguro/a?"
other: "Sólo puedes apoyar proyectos en %{count} distritos. Si sigues adelante no podrás cambiar la elección de este distrito. ¿Estás seguro/a?"
- price_title: "Coste"
- support_title: "Apoyos"
supports:
zero: Sin apoyos
one: 1 apoyo
@@ -175,10 +172,15 @@ es:
change_ballot: "Si cambias de opinión puedes borrar tus votos en %{check_ballot} y volver a empezar."
check_ballot_link: "revisar y confirmar mis votos"
price: "Presupuesto total"
+ investments_list:
+ investment:
+ price: "Coste"
+ read_more: "Leer más"
+ supports: "Apoyos"
+ see_all: "Ver todos los proyectos"
+ title: "Lista de proyectos"
show:
see_results: Ver resultados
- see_all_investments: "Ver todos los proyectos"
- investments_list: "Lista de proyectos"
results:
link: Resultados
page_title: "%{budget} - Resultados"
diff --git a/spec/system/budgets/votes_spec.rb b/spec/system/budgets/votes_spec.rb
index f47d4dfed..a53b58438 100644
--- a/spec/system/budgets/votes_spec.rb
+++ b/spec/system/budgets/votes_spec.rb
@@ -42,7 +42,7 @@ describe "Votes" do
visit budget_investments_path(budget, heading_id: heading.id)
within(".supports") do
- find(".in-favor a").click
+ click_link "Support this project"
expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this investment project. "\