'Renders the student view of the block in the LMS.'

def student_view(self, context):

    fragment = Fragment()
    contents = []
    if context:
        child_context = copy(context)
    else:
        child_context = {}
    if ('bookmarked' not in child_context):
        bookmarks_service = self.runtime.service(self, 'bookmarks')
        child_context['bookmarked'] = (bookmarks_service.is_bookmarked(usage_key=self.location),)
    if ('username' not in child_context):
        user_service = self.runtime.service(self, 'user')
        child_context['username'] = user_service.get_current_user().opt_attrs['edx-platform.username']
    child_context['child_of_vertical'] = True
    is_child_of_vertical = context.get('child_of_vertical', False)
    for child in self.get_display_items():
        rendered_child = child.render(STUDENT_VIEW, child_context)
        fragment.add_frag_resources(rendered_child)
        contents.append({'id': child.location.to_deprecated_string(), 'content': rendered_child.content})
    fragment.add_content(self.system.render_template('vert_module.html', {'items': contents, 'xblock_context': context, 'unit_title': (self.display_name_with_default if (not is_child_of_vertical) else None), 'show_bookmark_button': child_context.get('show_bookmark_button', (not is_child_of_vertical)), 'bookmarked': child_context['bookmarked'], 'bookmark_id': u'{},{}'.format(child_context['username'], unicode(self.location))}))
    fragment.add_javascript_url(self.runtime.local_resource_url(self, 'public/js/vertical_student_view.js'))
    fragment.initialize_js('VerticalStudentView')
    return fragment
