adding the ability to override the sidebar name
This commit is contained in:
@@ -228,6 +228,10 @@ class CourseDescriptor(SequenceDescriptor):
|
||||
def css_class(self):
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user