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 .col-lg-12
h1.page-header h1.page-header
= Event.model_name.human(count: 2).mb_chars.titleize = 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 .row.visible-sm
.col-xs-12 .col-xs-12
= link_to t('.filters'), '#filters', aria_expanded: true, aria_controls: 'filters', data: {toggle: 'collapse'}, role: 'button', class: 'btn btn-info' = 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}“" review: "Преглед на %{event_type} „%{event_title}“"
index: index:
all: "Всички" all: "Всички"
total: "%{current} от общо %{total}"
event: event:
create_profile: "Създай профил" create_profile: "Създай профил"
no_records: no_records: