Commit cd1bc95e by Arjun Singh

adding the ability to override the sidebar name

parent 4e7ba6e6
......@@ -229,6 +229,10 @@ class CourseDescriptor(SequenceDescriptor):
return self.metadata.get('css_class', '')
@property
def info_sidebar_name(self):
return self.metadata.get('info_sidebar_name', 'Course Handouts')
@property
def title(self):
return self.display_name
......
......@@ -29,7 +29,7 @@ $(document).ready(function(){
${get_course_info_section(course, 'updates')}
</section>
<section aria-label="Handout Navigation" class="handouts">
<h1>Course Handouts</h1>
<h1>${course.info_sidebar_name}</h1>
${get_course_info_section(course, 'handouts')}
</section>
% else:
......
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