diff --git a/common/lib/xmodule/xmodule/course_module.py b/common/lib/xmodule/xmodule/course_module.py
index 8435cfca9e..7582a8b64f 100644
--- a/common/lib/xmodule/xmodule/course_module.py
+++ b/common/lib/xmodule/xmodule/course_module.py
@@ -24,7 +24,11 @@ class CourseDescriptor(SequenceDescriptor):
@property
def title(self):
- self.metadata['display_name']
+ return self.metadata['display_name']
+
+ @property
+ def number(self):
+ return self.location.course
@property
def instructors(self):
@@ -62,7 +66,7 @@ class CourseDescriptor(SequenceDescriptor):
'requirements', 'syllabus', 'textbook', 'faq', 'more_info', 'number', 'instructors']:
try:
with self.system.resources_fs.open(path("about") / section_key + ".html") as htmlFile:
- return htmlFile.read()
+ return htmlFile.read().decode('utf-8')
except ResourceNotFoundError:
log.exception("Missing about section {key} in course {url}".format(key=section_key, url=self.location.url()))
return "! About section missing !"
@@ -91,7 +95,7 @@ class CourseDescriptor(SequenceDescriptor):
if section_key in ['handouts', 'guest_handouts', 'updates', 'guest_updates']:
try:
with self.system.resources_fs.open(path("info") / section_key + ".html") as htmlFile:
- return htmlFile.read()
+ return htmlFile.read().decode('utf-8')
except ResourceNotFoundError:
log.exception("Missing info section {key} in course {url}".format(key=section_key, url=self.location.url()))
return "! Info section missing !"
diff --git a/lms/templates/course.html b/lms/templates/course.html
index bcfcab2526..b79cf02ac7 100644
--- a/lms/templates/course.html
+++ b/lms/templates/course.html
@@ -9,35 +9,7 @@
An advanced introduction to analog circuits. An advanced introduction to analog circuits.${course.get_about_section('title')}
-
-
-