Commit 6379ee92 by Bertrand Marron

Add '' default to bodyclass in courseware templates

This prevents from having a 'None' CSS class in the <body> tag when no
css_class is defined for the course.
parent 51e6d5fb
......@@ -6,7 +6,7 @@
<% return _("{course_number} Courseware").format(course_number=course.display_number_with_default) %>
</%def>
<%block name="bodyclass">courseware ${course.css_class}</%block>
<%block name="bodyclass">courseware ${course.css_class or ''}</%block>
<%block name="title"><title>
% if section_title:
${page_title_breadcrumbs(section_title, course_name())}
......
......@@ -26,7 +26,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():
......
<%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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment