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

@ -0,0 +1,9 @@
.text-center
%h2 Upcoming Events
- @current_events.each do |event|
%div
%h3
= link_to event.title, conference_program_proposal_path(@conference.short_title, event.id)
%h4
presented by
= event.speaker_names

View file

@ -1,8 +1,10 @@
.container
- if @conference.present?
.row
.col-md-12.text-center
%h2 Upcoming Events
.col-md-12
- if @program.present?
%section#program#current-events
= render 'current_events'
.row
.col-md-12.text-center
%h2 Tweets About Conference

View file

@ -0,0 +1 @@
$('#current-events').html("#{escape_javascript(render 'current_events', data: @current_events)}");