diff --git a/app/views/admin/budget_investments/_investments.html.erb b/app/views/admin/budget_investments/_investments.html.erb
index c82b0044a..475b582f5 100644
--- a/app/views/admin/budget_investments/_investments.html.erb
+++ b/app/views/admin/budget_investments/_investments.html.erb
@@ -5,6 +5,7 @@
| <%= t("admin.budget_investments.index.table_id") %> |
<%= t("admin.budget_investments.index.table_title") %> |
+ <%= t("admin.budget_investments.index.table_supports") %> |
<%= t("admin.budget_investments.index.table_admin") %> |
<%= t("admin.budget_investments.index.table_valuator") %> |
<%= t("admin.budget_investments.index.table_geozone") %> |
@@ -22,6 +23,9 @@
<%= link_to investment.title, admin_budget_budget_investment_path(budget_id: @budget.id, id: investment.id, params: Budget::Investment.filter_params(params)) %>
|
+
+ <%= investment.total_votes %>
+ |
<% if investment.administrator.present? %>
<%= investment.administrator.name %>
diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml
index 2cedf0a5b..1d1bf9cb0 100755
--- a/config/locales/admin.en.yml
+++ b/config/locales/admin.en.yml
@@ -128,6 +128,7 @@ en:
select: "Select"
table_id: "ID"
table_title: "Title"
+ table_supports: "Supports"
table_admin: "Administrator"
table_valuator: "Valuator"
table_geozone: "Scope of operation"
diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml
index e66247227..b42843d70 100644
--- a/config/locales/admin.es.yml
+++ b/config/locales/admin.es.yml
@@ -128,6 +128,7 @@ es:
select: "Seleccionar"
table_id: "ID"
table_title: "Título"
+ table_supports: "Apoyos"
table_admin: "Administrador"
table_valuator: "Evaluador"
table_geozone: "Ámbito de actuación"
diff --git a/spec/features/admin/budget_investments_spec.rb b/spec/features/admin/budget_investments_spec.rb
index f4dde2425..cfbfcc8b0 100644
--- a/spec/features/admin/budget_investments_spec.rb
+++ b/spec/features/admin/budget_investments_spec.rb
@@ -21,9 +21,12 @@ feature 'Admin budget investments' do
context "Index" do
scenario 'Displaying investmentss' do
- budget_investment = create(:budget_investment, budget: @budget)
+ budget_investment = create(:budget_investment, budget: @budget, cached_votes_up: 77)
visit admin_budget_budget_investments_path(budget_id: @budget.id)
expect(page).to have_content(budget_investment.title)
+ expect(page).to have_content(budget_investment.heading.name)
+ expect(page).to have_content(budget_investment.id)
+ expect(page).to have_content(budget_investment.total_votes)
end
scenario 'Displaying assignments info' do
|