From 6e0ef385a25325169472bb45b810f748b6dfcefb Mon Sep 17 00:00:00 2001 From: Zia Fazal Date: Thu, 3 Sep 2015 16:40:48 +0500 Subject: [PATCH] load header extra file if request comes from micro site use blank header_extra template instead of if statement --- lms/templates/header_extra.html | 3 +++ lms/templates/main.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 lms/templates/header_extra.html diff --git a/lms/templates/header_extra.html b/lms/templates/header_extra.html new file mode 100644 index 0000000000..4a2ea9dda3 --- /dev/null +++ b/lms/templates/header_extra.html @@ -0,0 +1,3 @@ +<% +# This template is left blank on purpose. It can be overridden by microsites. +%> diff --git a/lms/templates/main.html b/lms/templates/main.html index 40c62ee6f3..0f9839ace7 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -94,7 +94,7 @@ from branding import api as branding_api style_overrides_file = None else: - header_extra_file = None + header_extra_file = microsite.get_template_path('header_extra.html') if settings.FEATURES['IS_EDX_DOMAIN'] and not is_microsite(): header_file = microsite.get_template_path('navigation-edx.html')