From 014c9798bf9251e6eefa7ddceea4be8972763f6c Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Mon, 27 Apr 2020 13:15:09 +0530 Subject: [PATCH] fix: Handle empty values in Footer template --- .../web_template/footer_horizontal/footer_horizontal.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frappe/website/web_template/footer_horizontal/footer_horizontal.html b/frappe/website/web_template/footer_horizontal/footer_horizontal.html index f4ec2a0696..10af7a7a34 100644 --- a/frappe/website/web_template/footer_horizontal/footer_horizontal.html +++ b/frappe/website/web_template/footer_horizontal/footer_horizontal.html @@ -1,7 +1,7 @@
{%- if brand_image -%}
- Brand Logo + {{ brand_label or 'Brand Logo' }}
{%- endif -%}
@@ -17,16 +17,18 @@ {%- endfor -%}
+ {%- if content -%}
{{ content }}
+ {%- endif -%}
- {{ address }} + {{ address or '' }}
- {{ copyright }} + {{ copyright or '' }}