Skip to content
Snippets Groups Projects
Commit 300e43ef authored by Jon Richter's avatar Jon Richter
Browse files

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

parent e0589783
No related branches found
No related tags found
1 merge request!22attempt correcting display of overlapping events
- @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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment