Fix bug in the schedule

Events that should be rendered in more than one carousel section are
only rendered in the first one.
This commit is contained in:
Ana María Martínez Gómez 2017-01-18 23:13:12 +01:00
parent 4a75546e6c
commit e61acde1e2

View file

@ -27,7 +27,7 @@
%td.room{ style: "height: #{ td_height(@rooms) }px;" }
.room.elipsis.break-words{ style: "-webkit-line-clamp: #{ room_lines(@rooms) }; height: #{ room_height(@rooms) }px;" }
= room.name
- event_schedules = room.event_schedules.select{ |e| (e.schedule_id == @conference.program.selected_schedule.id) && (e.start_time >= start_time) && (e.start_time <= (start_time + number_columns.hour)) }
- event_schedules = room.event_schedules.select{ |e| (e.schedule_id == @conference.program.selected_schedule.id) && (e.end_time > start_time) && (e.start_time <= (start_time + number_columns.hour)) }
- (1..intervals).each do |i|
- if span > 1
- span -= 1