Commit c4092ffd authored by jon richter's avatar jon richter

refactor unscheduled events display

parent ab42a2d8
......@@ -13,3 +13,7 @@
\/
= event.event_type
)
- if event.time_slots == nil
.unscheduled-event{ :id => "event_#{event.id}",
:"data-update-url" => schedule_update_event_path(:id => event.id) }
= link_to event.title, event
......@@ -5,10 +5,10 @@
%li.unscheduled-event{ :id => "event_#{event.id}",
:"data-update-url" => schedule_update_event_path(:id => event.id),
:"data-height" => (event.time_slots * 20 - 7) }
= link_to event.title, "#"
= link_to event.title, event
%h2 No time slots assigned:
- @unscheduled_events.each do |event|
- if event.time_slots = nil
- if event.time_slots == nil
%li.unscheduled-event{ :id => "event_#{event.id}",
:"data-update-url" => schedule_update_event_path(:id => event.id) }
= link_to event.title, "#"
= link_to event.title, event
......@@ -67,9 +67,8 @@
#event-pane
- @scheduled_events.each do |event|
= render 'event', :event => event
%p
%ul#unscheduled-events
= render 'unscheduled_events'
%ul#unscheduled-events
= render 'unscheduled_events'
#add-event-modal.modal{:style => "display: none;"}
.modal-header
= link_to "×", "#", :class => "close"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment