From a1785d4e42ac5ccdcaf08b1f51c443f128f3a09b Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 22 Aug 2016 10:56:13 -0400 Subject: [PATCH] Added checks for mem detail price display 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 | 2 +- views/front/packaging/listForMemberDetail.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/css/front.css b/css/front.css index 5c7f5c7..ccda116 100644 --- a/css/front.css +++ b/css/front.css @@ -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 { diff --git a/views/front/packaging/listForMemberDetail.html b/views/front/packaging/listForMemberDetail.html index 17f00c9..c6465b3 100644 --- a/views/front/packaging/listForMemberDetail.html +++ b/views/front/packaging/listForMemberDetail.html @@ -19,8 +19,8 @@

{$p.title}

{$p.short_descr}
-
Expires: {$p.expire_date.date}
-
Pricing: {$p.pricing}
+ {if $p.expire_date.date}
Expires: {$p.expire_date.date}
{/if} + {if $p.pricing}
Pricing: {$p.pricing}
{/if}
-- 2.17.1