is_current method added to check an event is current and function addded to refresh conference_wide_information
This commit is contained in:
parent
35afdcead4
commit
febd3451ad
8 changed files with 74 additions and 2 deletions
9
app/views/admin/conference/_current_events.html.haml
Normal file
9
app/views/admin/conference/_current_events.html.haml
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
$('#current-events').html("#{escape_javascript(render 'current_events', data: @current_events)}");
|
||||
Loading…
Add table
Add a link
Reference in a new issue