From b664639817b25126f11070ce17154352c45ce001 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Thu, 23 Jul 2020 09:18:23 -0700 Subject: [PATCH] Handle unscheduled events --- app/views/proposals/show.html.haml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/proposals/show.html.haml b/app/views/proposals/show.html.haml index bfd6851a..043fab11 100644 --- a/app/views/proposals/show.html.haml +++ b/app/views/proposals/show.html.haml @@ -77,8 +77,11 @@ .col-md-12 %dt Date: %dd - = inyourtz(@event_schedule.start_time, @conference.timezone) do - = @event_schedule.start_time.strftime("%Y %B %e - %H:%M") if @event_schedule + - if @event_schedule.present? + = inyourtz(@event_schedule.start_time, @conference.timezone) do + = @event_schedule.start_time.strftime("%Y %B %e - %H:%M") if @event_schedule + - else + Unscheduled .col-md-12 %dt Duration: %dd= show_time(@event.event_type.length)