is_current method added to check an event is current and function addded to refresh conference_wide_information

This commit is contained in:
AnithaPal 2016-07-15 16:28:03 -04:00
parent 35afdcead4
commit febd3451ad
8 changed files with 74 additions and 2 deletions

View file

@ -177,6 +177,13 @@ module Admin
#To display sponsors in the conference wide information page
@conference = Conference.find_by(short_title: params[:id])
@sponsors = @conference.sponsors
@program = @conference.program
@current_events = @conference.program.events.confirmed.select{ |event| event.is_current?}
respond_to do |format|
format.html
format.js {render :action=>"conference_wide_screen.js.haml"}
end
end
private