Adding labels for detail event page
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 17 Mar 2016 20:24:14 +0000 (16:24 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 17 Mar 2016 20:24:14 +0000 (16:24 -0400)
also check if cost is there before outputting that part

views/front/events/detail.html

index 06ec9b2..3cc98e6 100644 (file)
@@ -32,7 +32,9 @@
                             {$event.locations.address}<br>
                             {$event.locations.city.name}, {$event.locations.state.value} {$event.locations.zip}
                         </div>
-                        <div class="small-12 column">{$event.cost}</div>
+                        {if $event.cost}
+                        <div class="small-12 column"><strong>Cost</strong><br> {$event.cost}</div>
+                        {/if}
                         <div class="small-12 column"><strong>Contact & More Info</strong><br>
                             {if $event.url}
                             <a href="{$event.url}" target="_blank">{$event.url}</a><br>