diff --git a/lms/templates/courseware/courseware.html b/lms/templates/courseware/courseware.html index fe25581a35..070c751d1a 100644 --- a/lms/templates/courseware/courseware.html +++ b/lms/templates/courseware/courseware.html @@ -6,7 +6,7 @@ <% return _("{course_number} Courseware").format(course_number=course.display_number_with_default) %> -<%block name="bodyclass">courseware ${course.css_class} +<%block name="bodyclass">courseware ${course.css_class or ''} <%block name="title"> % if section_title: ${page_title_breadcrumbs(section_title, course_name())} diff --git a/lms/templates/courseware/info.html b/lms/templates/courseware/info.html index 3c2109d1f2..913968481f 100644 --- a/lms/templates/courseware/info.html +++ b/lms/templates/courseware/info.html @@ -24,7 +24,7 @@ $(document).ready(function(){ </script> </%block> -<%block name="bodyclass">${course.css_class}</%block> +<%block name="bodyclass">${course.css_class or ''}</%block> <section class="container"> <div class="info-wrapper"> % if user.is_authenticated(): diff --git a/lms/templates/courseware/static_tab.html b/lms/templates/courseware/static_tab.html index 2efc351cc4..4f8f54fc8d 100644 --- a/lms/templates/courseware/static_tab.html +++ b/lms/templates/courseware/static_tab.html @@ -1,5 +1,5 @@ <%inherit file="/main.html" /> -<%block name="bodyclass">${course.css_class}</%block> +<%block name="bodyclass">${course.css_class or ''}</%block> <%namespace name='static' file='/static_content.html'/> <%block name="headextra">