Commit daf33dbc by David Ormsbee

Merge pull request #514 from MITx/feature/arjun/customize_info_sidebar

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