'Checks whether the content of this sequential is hidden from the
runtime user. If so, returns a banner_text or the fragment to
display depending on whether staff is masquerading.'

def _hidden_content_student_view(self, context):

    course = self._get_course()
    if (not self._can_user_view_content(course)):
        if course.self_paced:
            banner_text = _('Because    the    course    has    ended,    this    assignment    is    hidden    from    the    learner.')
        else:
            banner_text = _('Because    the    due    date    has    passed,    this    assignment    is    hidden    from    the    learner.')
        hidden_content_html = self.system.render_template('hidden_content.html', {'self_paced': course.self_paced, 'progress_url': context.get('progress_url')})
        return (banner_text, hidden_content_html)
