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
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
- 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, "#"
+0 −1
Original line number Diff line number Diff line
@@ -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"