Commit 0b6bf773 by Arjun Singh

Adding a course-specific css class to body so that we can have course-targeted…

Adding a course-specific css class to body so that we can have course-targeted styles as a last resort
parent 9bcd3cd4
......@@ -198,6 +198,10 @@ class CourseDescriptor(SequenceDescriptor):
return time.strftime("%b %d, %Y", self.start)
@property
def css_class(self):
return self.metadata.get('css_class', '')
@property
def title(self):
return self.display_name
......
<%inherit file="/main.html" />
<%namespace name='static' file='/static_content.html'/>
<%block name="bodyclass">courseware</%block>
<%block name="bodyclass">courseware ${course.css_class}</%block>
<%block name="title"><title>${course.number} Courseware</title></%block>
<%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