'Renders student view for LMS.'

def student_view(self, context=None):

    fragment = Fragment()
    self.add_resource_urls(fragment)
    context = {'discussion_id': self.discussion_id, 'display_name': (self.display_name if self.display_name else _('Discussion')), 'user': self.django_user, 'course_id': self.course_key, 'discussion_category': self.discussion_category, 'discussion_target': self.discussion_target, 'can_create_thread': self.has_permission('create_thread'), 'can_create_comment': self.has_permission('create_comment'), 'can_create_subcomment': self.has_permission('create_sub_comment')}
    fragment.add_content(self.runtime.render_template('discussion/_discussion_inline.html', context))
    fragment.initialize_js('DiscussionInlineBlock')
    return fragment
