From 33c2a1e83ed3553728f058130bc6cfdca043cbf2 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 9 Oct 2016 15:15:29 +0300 Subject: [PATCH] Add volunteer count to All teams and translate --- app/views/management/volunteers/index.html.slim | 1 + config/locales/bg.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/management/volunteers/index.html.slim b/app/views/management/volunteers/index.html.slim index 382b357..5da8751 100644 --- a/app/views/management/volunteers/index.html.slim +++ b/app/views/management/volunteers/index.html.slim @@ -20,6 +20,7 @@ = content_tag :li, role: "presentation", class: @filters[:volunteer_team_id].blank? ? 'active' : nil = link_to management_conference_volunteers_path(current_conference, filters: @filters.except(:volunteer_team_id)) = t '.all' + span.badge.pull-right = current_conference.volunteers.count - current_conference.volunteer_teams.each do |volunteer_team| = content_tag :li, role: "presentation", class: @filters[:volunteer_team_id] == volunteer_team.id.to_s ? 'active' : nil = link_to management_conference_volunteers_path(current_conference, filters: @filters.merge({volunteer_team_id: volunteer_team.id})) diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 99f8ff2..15ae509 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -2,6 +2,7 @@ bg: management: volunteers: index: + all: Всички profile: Профил total: "%{current} от общо %{total}" personal_profiles: