Added checks for mem detail price display
authorLaury GvR <laury@gaslightmedia.com>
Mon, 22 Aug 2016 14:56:13 +0000 (10:56 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 22 Aug 2016 14:56:13 +0000 (10:56 -0400)
Added checks to see whether the package price exists, before
displaying it on the member detail package list. Did so as well
for the expire_date.date (even though that should never be blank).
Max-height for packages on member detail page changed 120 -> 240px

css/front.css
views/front/packaging/listForMemberDetail.html

index 5c7f5c7..ccda116 100644 (file)
@@ -48,7 +48,7 @@ div.member div.address {
     border: 1px solid #e1e1e1;
     border-radius: 4px;
     margin-bottom: 10px;
-    max-height: 120px;
+    max-height: 240px;
     overflow: hidden;
 }
 #glm-member-detail-packages-container .glm-member-db-package-info {
index 17f00c9..c6465b3 100644 (file)
@@ -19,8 +19,8 @@
                 <h3 class="glm-member-db-package-title"><a href="{$siteBaseUrl}{$settings.canonical_package_page}/{$p.package_slug}/">{$p.title}</a></h3>
                 <div class="glm-member-db-package-desc">{$p.short_descr}</div>
                 <div class="details">
-                    <div><span class="title">Expires: </span><span class="data">{$p.expire_date.date}</span></div>
-                    <div><span class="title">Pricing: </span><span class="data">{$p.pricing}</span></div>
+                    {if $p.expire_date.date}<div><span class="title">Expires: </span><span class="data">{$p.expire_date.date}</span></div>{/if}
+                    {if $p.pricing}<div><span class="title">Pricing: </span><span class="data">{$p.pricing}</span></div>{/if}
                 </div>
             </div>