From d5f8d2655a9e536a84d4f4a3a8b513c90fa4699d Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 27 Dec 2017 09:25:55 -0500 Subject: [PATCH] only showing icons if the event has the relevant information in the reg detail page icons were showing up even if there was no data next to the event info --- views/front/registrations/registration.html | 23 ++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index edac800..5cf315a 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -24,27 +24,26 @@

<%= event_name %>

{/literal} - {if $regEvent.image}
{/if}
-
-
{$regEvent.first_datetime.timestamp|date_format:"%A, %B %e, %Y"}
+ {if $regEvent.first_datetime.timestamp} +
{$regEvent.first_datetime.timestamp|date_format:"%A, %B %e, %Y"}
- {if $first_date.timestamp != $last_date.timestamp && !$time_specific} -
{$first_date.timestamp|date_format:"%l:%M %p"} - {$last_date.timestamp|date_format:"%l:%M %p"}
- {else} -
{$regEvent.first_datetime.timestamp|date_format:"%l:%M %p"}
- {/if} - - {if $regEvent.eventCost} -
{$regEvent.eventCost}
+ {if $first_date.timestamp != $last_date.timestamp && !$time_specific} +
{$first_date.timestamp|date_format:"%l:%M %p"} - {$last_date.timestamp|date_format:"%l:%M %p"}
+ {else} +
{$regEvent.first_datetime.timestamp|date_format:"%l:%M %p"}
+ {/if} + + {if $regEvent.eventCost} +
{$regEvent.eventCost}
+ {/if} {/if} - {if $regEvent.locations.name || $regEvent.locations.address}
-- 2.17.1