fixing the event detail date output
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 18 Apr 2017 12:00:47 +0000 (08:00 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 18 Apr 2017 12:00:47 +0000 (08:00 -0400)
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

index 33f2090..5180e90 100644 (file)
@@ -63,8 +63,9 @@
                                     <div>
                                     <span>
                                     {if !$event.all_day}
+        
                                         <strong>
-                                            {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"}