diff --git a/app/views/management/events/_suggestion_group.html.slim b/app/views/management/events/_suggestion_group.html.slim index fccc257..3401027 100644 --- a/app/views/management/events/_suggestion_group.html.slim +++ b/app/views/management/events/_suggestion_group.html.slim @@ -19,6 +19,7 @@ br span.subtitle = suggestion.subtitle + td = suggestion.language td = suggestion.track.name td = suggestion.class.model_name.human td.actions diff --git a/app/views/management/events/index.html.slim b/app/views/management/events/index.html.slim index 4cbf2b6..5c1b5e3 100644 --- a/app/views/management/events/index.html.slim +++ b/app/views/management/events/index.html.slim @@ -1,12 +1,16 @@ .row .panel.panel-primary .panel-heading - h3.panel-title = Event.model_name.human(count: 2) + h3.panel-title + = Event.model_name.human(count: 2) + span.pull-right + = t(:suggestion_and_speaker_count, suggestions: @suggestion_groups.map(&:suggestions).flatten.count, speakers: @suggestion_groups.count) table.record-table thead tr th.picture = Event.human_attribute_name(:user) th = Event.human_attribute_name(:title) + th = Event.human_attribute_name(:language) th = Track.model_name.human th = Event.human_attribute_name(:type) th.actions diff --git a/config/locales/views.bg.yml b/config/locales/views.bg.yml index a025e6c..8484f44 100644 --- a/config/locales/views.bg.yml +++ b/config/locales/views.bg.yml @@ -67,4 +67,5 @@ bg: of_motto: да споделим свободата - meta_data: "Език: %{language}, поток: „%{track}“, продължителност: %{length} мин." \ No newline at end of file + meta_data: "Език: %{language}, поток: „%{track}“, продължителност: %{length} мин." + suggestion_and_speaker_count: "%{suggestions} предложения от %{speakers} лектори" \ No newline at end of file diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 26b7360..2360cb9 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -65,4 +65,5 @@ en: logout: Logout of_motto: share the freedom - meta_data: "Language: %{language}, track: \"%{track}\", length: %{length} min." \ No newline at end of file + meta_data: "Language: %{language}, track: \"%{track}\", length: %{length} min." + suggestion_and_speaker_count: "%{suggestions} suggestions by %{speakers} speakers" \ No newline at end of file