From d36153cbb89e4381350230e8c92b3e832c83b799 Mon Sep 17 00:00:00 2001 From: Saleem Latif Date: Thu, 2 Nov 2017 12:20:33 +0500 Subject: [PATCH] Hide braces when ENTERPRISE_TAGLINE is not set. --- lms/templates/header/brand.html | 4 +++- lms/templates/header/navbar-logo-header.html | 4 +++- lms/templates/navigation/navbar-logo-header.html | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lms/templates/header/brand.html b/lms/templates/header/brand.html index cd6cf61a13..f6eb0ef72b 100644 --- a/lms/templates/header/brand.html +++ b/lms/templates/header/brand.html @@ -22,7 +22,9 @@ from branding import api as branding_api % if enable_enterprise_sidebar: <% tagline = configuration_helpers.get_value('ENTERPRISE_TAGLINE', settings.ENTERPRISE_TAGLINE) %> - ${tagline} + % if tagline: + ${tagline} + % endif % endif % if course and not disable_courseware_header: diff --git a/lms/templates/header/navbar-logo-header.html b/lms/templates/header/navbar-logo-header.html index caaa81e6c4..c704296f8a 100644 --- a/lms/templates/header/navbar-logo-header.html +++ b/lms/templates/header/navbar-logo-header.html @@ -22,7 +22,9 @@ from branding import api as branding_api % if enable_enterprise_sidebar: <% tagline = configuration_helpers.get_value('ENTERPRISE_TAGLINE', settings.ENTERPRISE_TAGLINE) %> - ${tagline} + % if tagline: + ${tagline} + % endif % endif % if course: diff --git a/lms/templates/navigation/navbar-logo-header.html b/lms/templates/navigation/navbar-logo-header.html index 834ab7f17a..86eb72efc2 100644 --- a/lms/templates/navigation/navbar-logo-header.html +++ b/lms/templates/navigation/navbar-logo-header.html @@ -24,7 +24,9 @@ from branding import api as branding_api % if enable_enterprise_sidebar: <% tagline = configuration_helpers.get_value('ENTERPRISE_TAGLINE', settings.ENTERPRISE_TAGLINE) %> - ${tagline} + % if tagline: + ${tagline} + % endif % endif % if course: