Merge 514a88e0be into a4ef10cf1b
This commit is contained in:
commit
f1e37df5a0
21 changed files with 264 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue