Commit 704ba675 authored by jon richter's avatar jon richter

reattempt #239, closes #243

This is how it should have been done in the first place. An additional
condition proves enough to guard against unscheduled events, that do not
even have time slots defined.
parent 357c5f3e
- @unscheduled_events.each do |event|
%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 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, "#"
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