Commit 300e43ef authored by jon richter's avatar jon richter

refactor fallbacks for unscheduled events to also show those without time slots

parent e0589783
- @unscheduled_events.each do |event|
- if event.time_slots != nil
%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, "#"
- if @unscheduled_events != nil
%h2 No rooms assigned:
- @unscheduled_events.each do |event|
- if event.time_slots != nil
%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, "#"
%h2 No time slots assigned:
- @unscheduled_events.each do |event|
- 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, "#"
......@@ -67,7 +67,6 @@
#event-pane
- @scheduled_events.each do |event|
= render 'event', :event => event
%h2 No rooms assigned:
#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