<%! from django.core.urlresolvers import reverse from courseware.courses import course_image_url, get_course_about_section %> <%namespace name='static' file='../static_content.html'/> <%inherit file="../main.html" /> <%block name="js_extra"> % if not registered: %if user.is_authenticated(): ## If the user is authenticated, clicking the enroll button just submits a form %else: ## If the user is not authenticated, clicking the enroll button pops up the register ## field. We also slip in the registration fields into the login/register fields so ## the user is automatically registered after logging in / registering %endif %endif <%block name="title">About ${course.number}

${course.number}: ${get_course_about_section(course, "title")}${get_course_about_section(course, "university")}

%if user.is_authenticated(): %if registered: <% ## TODO: move this logic into a view if course.has_started() or settings.MITX_FEATURES['DISABLE_START_DATES']: course_target = reverse('info', args=[course.id]) else: course_target = reverse('about_course', args=[course.id]) show_link = settings.MITX_FEATURES.get('ENABLE_LMS_MIGRATION') %> %if show_link: %endif You are registered for this course (${course.number}). %if show_link: %endif %else: Register for ${course.number}
%endif %else: Register for ${course.number} %endif
% if get_course_about_section(course, "video"):
%else:
% endif
${get_course_about_section(course, "overview")}
  1. Course Number

    ${course.number}
  2. Classes Start

    ${course.start_date_text}
  3. ## End date should come from course.xml, but this is a quick hack % if get_course_about_section(course, "end_date"):
  4. Classes End

    ${get_course_about_section(course, "end_date")}
  5. % endif % if get_course_about_section(course, "effort"):
  6. Estimated Effort

    ${get_course_about_section(course, "effort")}
  7. % endif ##
  8. Course Length

    15 weeks
  9. % if get_course_about_section(course, "prerequisites"):
  10. Prerequisites

    ${get_course_about_section(course, "prerequisites")}
  11. % endif
%if not registered:
%endif <%include file="../video_modal.html" />