This commit is contained in:
Anitha Palanisamy 2017-01-31 13:57:04 +00:00 committed by GitHub
commit f1e37df5a0
21 changed files with 264 additions and 3 deletions

View file

@ -173,8 +173,25 @@ module Admin
end
end
def conference_info
# To display sponsors in the conference wide information page
@sponsors = @conference.sponsors
@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'}
format.js {render action: 'conference_info.js.haml'}
end
end
private
# To create a twitter client
def twitter_client
@twitter_client ||= TwitterWrapper.new
end
def conference_params
params.require(:conference).permit(:title, :short_title, :description, :timezone,
:start_date, :end_date, :rooms_attributes, :tracks_attributes,