From 7eb9a57c342bfe39e042872509288a3dd6368161 Mon Sep 17 00:00:00 2001 From: Ana Date: Mon, 15 Aug 2016 13:05:35 +0200 Subject: [PATCH] Adapt admin schedule to use the confence hours --- app/views/admin/schedules/_day_tab.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/schedules/_day_tab.html.haml b/app/views/admin/schedules/_day_tab.html.haml index 57be4999..61f6e862 100644 --- a/app/views/admin/schedules/_day_tab.html.haml +++ b/app/views/admin/schedules/_day_tab.html.haml @@ -9,7 +9,7 @@ .room-name - room_date_event_schedules = date_event_schedules.select{ |e| e.room == room } = room.name - - (9*cells_per_hour..18*cells_per_hour).each do |slot| + - (@conference.start_hour * cells_per_hour..@conference.end_hour * cells_per_hour).each do |slot| - hour = slot / cells_per_hour - minutes = (EventType::LENGTH_STEP * (slot % cells_per_hour)).to_s.rjust(2, '0') - time = "#{hour}:#{minutes}"