Commit f322517b by Brian Beggs Committed by GitHub

Merge pull request #13746 from edx/release-candidate

Pull hotfix in to release branch.
parents 9629e5bd 392be599
...@@ -52,6 +52,8 @@ class VerticalBlock(SequenceFields, XModuleFields, StudioEditableBlock, XmlParse ...@@ -52,6 +52,8 @@ class VerticalBlock(SequenceFields, XModuleFields, StudioEditableBlock, XmlParse
child_context['child_of_vertical'] = True child_context['child_of_vertical'] = True
is_child_of_vertical = context.get('child_of_vertical', False)
# pylint: disable=no-member # pylint: disable=no-member
for child in self.get_display_items(): for child in self.get_display_items():
rendered_child = child.render(STUDENT_VIEW, child_context) rendered_child = child.render(STUDENT_VIEW, child_context)
...@@ -65,8 +67,8 @@ class VerticalBlock(SequenceFields, XModuleFields, StudioEditableBlock, XmlParse ...@@ -65,8 +67,8 @@ class VerticalBlock(SequenceFields, XModuleFields, StudioEditableBlock, XmlParse
fragment.add_content(self.system.render_template('vert_module.html', { fragment.add_content(self.system.render_template('vert_module.html', {
'items': contents, 'items': contents,
'xblock_context': context, 'xblock_context': context,
'unit_title': self.display_name_with_default, 'unit_title': self.display_name_with_default if not is_child_of_vertical else None,
'show_bookmark_button': True, 'show_bookmark_button': not is_child_of_vertical,
'bookmarked': child_context['bookmarked'], 'bookmarked': child_context['bookmarked'],
'bookmark_id': "{},{}".format(child_context['username'], unicode(self.location)) 'bookmark_id': "{},{}".format(child_context['username'], unicode(self.location))
})) }))
......
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