From 297a2e02a2f37d037150176da26f74302e06c0fb Mon Sep 17 00:00:00 2001 From: Ana Date: Mon, 22 Aug 2016 21:52:42 +0200 Subject: [PATCH] Fix bug in the schedule The events which start time was the one of the last cell of the table were not rendered. --- app/views/schedules/_carousel.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/schedules/_carousel.html.haml b/app/views/schedules/_carousel.html.haml index 0234e35e..e529c303 100644 --- a/app/views/schedules/_carousel.html.haml +++ b/app/views/schedules/_carousel.html.haml @@ -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.start_time >= start_time) && (e.start_time <= (start_time + number_columns.hour)) } - (1..intervals).each do |i| - if span > 1 - span -= 1