Add event counts in the index

This commit is contained in:
Petko Bordjukov 2016-10-09 03:09:31 +03:00
parent 8a0ae82165
commit 0911ce5a71
2 changed files with 6 additions and 0 deletions

View File

@ -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'

View File

@ -17,6 +17,7 @@ bg:
review: "Преглед на %{event_type} „%{event_title}“"
index:
all: "Всички"
total: "%{current} от общо %{total}"
event:
create_profile: "Създай профил"
no_records: