'Register messages to be shown in the course home content page.'

@staticmethod
def register_course_home_messages(request, course, user_access, course_start_data):

    if user_access['is_anonymous']:
        CourseHomeMessages.register_info_message(request, Text(_('    {sign_in_link}    or    {register_link}    and    then    enroll    in    this    course.')).format(sign_in_link=HTML("<a    href='/login?next={current_url}'>{sign_in_label}</a>").format(sign_in_label=_('Sign    in'), current_url=urlquote_plus(request.path)), register_link=HTML("<a    href='/register?next={current_url}'>{register_label}</a>").format(register_label=_('register'), current_url=urlquote_plus(request.path))), title='You    must    be    enrolled    in    the    course    to    see    course    content.')
    if ((not user_access['is_anonymous']) and (not user_access['is_staff']) and (not user_access['is_enrolled'])):
        CourseHomeMessages.register_info_message(request, Text(_('{open_enroll_link}    Enroll    now{close_enroll_link}    to    access    the    full    course.')).format(open_enroll_link='', close_enroll_link=''), title=Text('Welcome    to    {course_display_name}').format(course_display_name=course.display_name))
    if (user_access['is_enrolled'] and (not course_start_data['already_started'])):
        CourseHomeMessages.register_info_message(request, Text(_("Don't    forget    to    add    a    calendar    reminder!")), title=Text('Course    starts    in    {days_until_start_string}    on    {course_start_date}.').format(days_until_start_string=course_start_data['days_until_start_string'], course_start_date=course_start_data['course_start_date']))
