From e15f1b8686b51b388b9318a147cb443dd2f053e1 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 18 Apr 2017 08:00:47 -0400 Subject: [PATCH] fixing the event detail date output added a check for the start_time_only value in the recurrences loop for the date section of the event detail page. Now the recurrence loop checks for identical start and end dates OR if the start time only flag is set. this is done is the front detail view template. --- views/front/events/detail.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/front/events/detail.html b/views/front/events/detail.html index 33f2090..5180e90 100644 --- a/views/front/events/detail.html +++ b/views/front/events/detail.html @@ -63,8 +63,9 @@
{if !$event.all_day} + - {if $rec.start_time.time == $rec.end_time.time} + {if $rec.start_time.time == $rec.end_time.time || $rec.start_time_only.value} {$rec.start_time.time|strtotime|date_format:"%l:%M %P"} {else} {$rec.start_time.time|strtotime|date_format:"%l:%M %P"} - {$rec.end_time.time|strtotime|date_format:"%l:%M %P"} -- 2.17.1