From 0911ce5a710f9b7b00c3b8d6f530895ae4000d58 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 9 Oct 2016 03:09:31 +0300 Subject: [PATCH] Add event counts in the index --- app/views/management/events/index.html.slim | 5 +++++ config/locales/bg.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/app/views/management/events/index.html.slim b/app/views/management/events/index.html.slim index 915cee6..195a0a8 100644 --- a/app/views/management/events/index.html.slim +++ b/app/views/management/events/index.html.slim @@ -5,6 +5,11 @@ .col-lg-12 h1.page-header = Event.model_name.human(count: 2).mb_chars.titleize + small< + | ( + = t '.total', current: @events.count, total: current_conference.events.count + =< Event.model_name.human(count: current_conference.events.count) + | ) .row.visible-sm .col-xs-12 = link_to t('.filters'), '#filters', aria_expanded: true, aria_controls: 'filters', data: {toggle: 'collapse'}, role: 'button', class: 'btn btn-info' diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 26d81c7..f80047f 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -17,6 +17,7 @@ bg: review: "Преглед на %{event_type} „%{event_title}“" index: all: "Всички" + total: "%{current} от общо %{total}" event: create_profile: "Създай профил" no_records: