From f83254ed062b95272b6e530160250c829f2b5248 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 10 Oct 2016 14:41:49 -0400 Subject: [PATCH] removing the 'on' phrase from agenda view events if there are 0 or 7 days listed in the recurrences --- views/front/events/agenda.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/front/events/agenda.html b/views/front/events/agenda.html index 8845455..46ff0ee 100644 --- a/views/front/events/agenda.html +++ b/views/front/events/agenda.html @@ -22,7 +22,7 @@

{$event.name}

( Occurring {$event.recurrences.0.from_date.date} - {$event.recurrences.0.to_date.date} - {if $event.recurrences.0.day_of_week.names|@count < 7} + {if $event.recurrences.0.day_of_week.names|@count < 7 && $event.recurrences.0.day_of_week.names|@count > 0 } on {foreach $event.recurrences.0.day_of_week.names as $day} -- 2.17.1