display current events based on track

This commit is contained in:
AnithaPal 2016-09-26 14:46:46 -04:00
parent e82a3e1727
commit 514a88e0be
10 changed files with 56 additions and 39 deletions

View file

@ -176,8 +176,8 @@ module Admin
def conference_info
# To display sponsors in the conference wide information page
@sponsors = @conference.sponsors
@current_event_schedules = @program.selected_schedule.event_schedules.current
@tweets = twitter_client.search_tweets(15, @conference.contact.social_tag)
@current_event_schedules = @program.selected_schedule.event_schedules.current.group_by{|es| es.event.track.name}
respond_to do |format|
format.html{render layout: 'conference_info'}