From cd1bc95efe49c2cf4f13d1d61063fb3840c057f2 Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Wed, 22 Aug 2012 20:02:18 -0700 Subject: [PATCH] adding the ability to override the sidebar name --- common/lib/xmodule/xmodule/course_module.py | 4 ++++ lms/templates/courseware/info.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/course_module.py b/common/lib/xmodule/xmodule/course_module.py index e9ec4518c8..28668ef088 100644 --- a/common/lib/xmodule/xmodule/course_module.py +++ b/common/lib/xmodule/xmodule/course_module.py @@ -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 diff --git a/lms/templates/courseware/info.html b/lms/templates/courseware/info.html index 33195f985e..ced427d31a 100644 --- a/lms/templates/courseware/info.html +++ b/lms/templates/courseware/info.html @@ -29,7 +29,7 @@ $(document).ready(function(){ ${get_course_info_section(course, 'updates')}
-

Course Handouts

+

${course.info_sidebar_name}

${get_course_info_section(course, 'handouts')}
% else: