Commit d8c8c850 by ichuang

tabs to spaces

parent 97a32e64
...@@ -75,7 +75,7 @@ class SequenceModule(XModule): ...@@ -75,7 +75,7 @@ class SequenceModule(XModule):
contents = [] contents = []
for child in self.get_display_items(): for child in self.get_display_items():
progress = child.get_progress() progress = child.get_progress()
childinfo = { childinfo = {
'content': child.get_html(), 'content': child.get_html(),
'title': "\n".join( 'title': "\n".join(
grand_child.display_name.strip() grand_child.display_name.strip()
...@@ -86,7 +86,7 @@ class SequenceModule(XModule): ...@@ -86,7 +86,7 @@ class SequenceModule(XModule):
'progress_detail': Progress.to_js_detail_str(progress), 'progress_detail': Progress.to_js_detail_str(progress),
'type': child.get_icon_class(), 'type': child.get_icon_class(),
} }
if childinfo['title']=='': if childinfo['title']=='':
childinfo['title'] = child.metadata['display_name'] childinfo['title'] = child.metadata['display_name']
contents.append(childinfo) contents.append(childinfo)
......
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