diff --git a/app/views/admin/budgets/_groups.html.erb b/app/views/admin/budgets/_groups.html.erb
index f5dde3aa1..537659fec 100644
--- a/app/views/admin/budgets/_groups.html.erb
+++ b/app/views/admin/budgets/_groups.html.erb
@@ -1,4 +1,4 @@
-
<%= t('admin.budgets.show.groups') %>
+<%= t('admin.budgets.show.groups', count: groups.count) %>
<% if groups.blank? %>
<%= t("admin.budgets.form.no_groups") %>
diff --git a/config/locales/admin.en.yml b/config/locales/admin.en.yml
index 4aec846cb..dadcb7745 100755
--- a/config/locales/admin.en.yml
+++ b/config/locales/admin.en.yml
@@ -82,7 +82,9 @@ en:
new:
title: New participatory budget
show:
- groups: Groups of budget headings
+ groups:
+ one: 1 Group of budget headings
+ other: "%{count} Groups of budget headings"
form:
group: Group name
no_groups: No groups created yet. Each user will be able to vote in only one heading per group.
diff --git a/config/locales/admin.es.yml b/config/locales/admin.es.yml
index f79f76a17..09959cfde 100644
--- a/config/locales/admin.es.yml
+++ b/config/locales/admin.es.yml
@@ -82,7 +82,9 @@ es:
new:
title: Nuevo presupuesto ciudadano
show:
- groups: Grupos de partidas presupuestarias
+ groups:
+ one: 1 Grupo de partidas presupuestarias
+ other: "%{count} Grupos de partidas presupuestarias"
form:
group: Nombre del grupo
no_groups: No hay grupos creados todavía. Cada usuario podrá votar en una sola partida de cada grupo.
diff --git a/spec/features/admin/budgets_spec.rb b/spec/features/admin/budgets_spec.rb
index 7a8658cdd..27a15ad0f 100644
--- a/spec/features/admin/budgets_spec.rb
+++ b/spec/features/admin/budgets_spec.rb
@@ -113,6 +113,7 @@ feature 'Admin budgets' do
click_link 'Edit headings groups'
end
+ expect(page).to have_content '0 Groups of budget headings'
expect(page).to have_content 'No groups created yet.'
click_link 'Add new group'
@@ -120,6 +121,7 @@ feature 'Admin budgets' do
fill_in 'budget_group_name', with: 'Health'
click_button 'Create group'
+ expect(page).to have_content '1 Group of budget headings'
expect(page).to have_content 'Health'
expect(page).to have_content 'Yearly participatory budget'
expect(page).to_not have_content 'No groups created yet.'
@@ -127,6 +129,7 @@ feature 'Admin budgets' do
visit admin_budgets_path
click_link 'Edit budget'
+ expect(page).to have_content '1 Group of budget headings'
expect(page).to have_content 'Health'
expect(page).to have_content 'Yearly participatory budget'
expect(page).to_not have_content 'No groups created yet.'