Commit 1a816ca5 authored by jon richter's avatar jon richter

cont. refactor unscheduled events display

parent dc1f9d83
- incomplete_events = 0
- @scheduled_events.each do |event|
- if event.time_slots != nil
.event{ :id => "event_#{event.id}",
......@@ -16,11 +17,10 @@
)
- if event.time_slots == nil
- incomplete_events += 1
- if defined? incomplete_events
- if incomplete_events > 0
%h2 Events on #{day.label} missing time slots
- @scheduled_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, event
- if incomplete_events > 0
%h2 Events on #{day.label} missing time slots
- @scheduled_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, event
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