created current scope in event_schedule model and conference info link name and path changed

This commit is contained in:
AnithaPal 2016-08-23 10:23:26 -04:00
parent e8d3177ec1
commit e82a3e1727
17 changed files with 53 additions and 65 deletions

View file

@ -173,16 +173,15 @@ module Admin
end
end
def conference_wide_screen
def conference_info
# To display sponsors in the conference wide information page
@sponsors = @conference.sponsors
@program = @conference.program
@current_events = @conference.program.events.current
@current_event_schedules = @program.selected_schedule.event_schedules.current
@tweets = twitter_client.search_tweets(15, @conference.contact.social_tag)
respond_to do |format|
format.html{render layout: 'conference_wide_screen'}
format.js {render action: 'conference_wide_screen.js.haml'}
format.html{render layout: 'conference_info'}
format.js {render action: 'conference_info.js.haml'}
end
end