From 08fdf40afb7fb083902e906c3e31652d5ab14134 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 11 Sep 2020 16:02:40 +0530 Subject: [PATCH] fix(Small CTA: Hide subtitle and cta if not set --- .../section_with_small_cta/section_with_small_cta.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frappe/website/web_template/section_with_small_cta/section_with_small_cta.html b/frappe/website/web_template/section_with_small_cta/section_with_small_cta.html index e2f8f5d7f6..56a95bb4c9 100644 --- a/frappe/website/web_template/section_with_small_cta/section_with_small_cta.html +++ b/frappe/website/web_template/section_with_small_cta/section_with_small_cta.html @@ -1,11 +1,15 @@
-

{{ title }}

+

{{ title or '' }}

+ {%- if subtitle -%}

{{ subtitle }}

+ {%- endif -%}
+ {%- if cta_label and cta_url -%} {{ cta_label }} + {%- endif -%}