<%namespace name='static' file='../static_content.html'/> <%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from courseware.courses import get_course_about_section from django.conf import settings from edxmako.shortcuts import marketing_link from openedx.core.lib.courses import course_image_url %> <%inherit file="../main.html" /> <%block name="headextra"> ## OG (Open Graph) title and description added below to give social media info to display ## (https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tags) <%block name="js_extra"> ## CourseTalk widget js script % if show_coursetalk_widget: % endif <%block name="pagetitle">${course.display_name_with_default_escaped}

${course.display_name_with_default_escaped} ${course.display_org_with_default | h}

%if user.is_authenticated() and registered: %if show_courseware_link: %endif ${_("You are enrolled in this course")} %if show_courseware_link: ${_("View Course")} %endif %elif in_cart: ${_('This course is in your cart.').format(cart_link=cart_link)} % elif is_course_full: ${_("Course is full")} % elif invitation_only and not can_enroll: ${_("Enrollment in this course is by invitation only")} ## Shib courses need the enrollment button to be displayed even when can_enroll is False, ## because AnonymousUsers cause can_enroll for shib courses to be False, but we need them to be able to click ## so that they can register and become a real user that can enroll. % elif not is_shib_course and not can_enroll: ${_("Enrollment is Closed")} %elif can_add_course_to_cart: <% if user.is_authenticated(): reg_href = "#" reg_element_id = "add_to_cart_post" else: reg_href = reg_then_add_to_cart_link reg_element_id = "reg_then_add_to_cart" %> <% if ecommerce_checkout: reg_href = ecommerce_checkout_link reg_element_id = "" %> ${_("Add {course_name} to Cart ({price} USD)")\ .format(course_name=course.display_number_with_default, price=course_price)}
%else: <% if ecommerce_checkout: reg_href = ecommerce_checkout_link else: reg_href="#" if professional_mode: href_class = "add-to-cart" else: href_class = "register" %> ${_("Enroll in {course_name}").format(course_name=course.display_number_with_default) | h}
%endif
% if get_course_about_section(request, course, "video"):
%else:
% endif
% if staff_access and studio_url is not None: % endif
${get_course_about_section(request, course, "overview")}
<%include file="course_about_sidebar_header.html" />
  1. ${_("Course Number")}

    ${course.display_number_with_default | h}
  2. % if not course.start_date_is_still_default:
  3. ${_("Classes Start")}

    ${course.start_datetime_text()}
  4. % endif ## We plan to ditch end_date (which is not stored in course metadata), ## but for backwards compatibility, show about/end_date blob if it exists. % if get_course_about_section(request, course, "end_date") or course.end:
  5. ${_("Classes End")}

    % if get_course_about_section(request, course, "end_date"): ${get_course_about_section(request, course, "end_date")} % else: ${course.end_datetime_text()} % endif
  6. % endif % if get_course_about_section(request, course, "effort"):
  7. ${_("Estimated Effort")}

    ${get_course_about_section(request, course, "effort")}
  8. % endif ##
  9. ${_('Course Length')}

    ${_('{number} weeks').format(number=15)}
  10. %if course_price and (can_add_course_to_cart or is_cosmetic_price_enabled):
  11. ${_("Price")}

    ${course_price}
  12. %endif % if pre_requisite_courses: <% prc_target = reverse('about_course', args=[unicode(pre_requisite_courses[0]['key'])]) %>
  13. ${_("Prerequisites")}

    ## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element ${pre_requisite_courses[0]['display']}

    ${_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.").format( link_start=''.format(prc_target), link_end='', prc_display=pre_requisite_courses[0]['display'], )}

  14. % endif % if get_course_about_section(request, course, "prerequisites"):
  15. ${_("Requirements")}

    ${get_course_about_section(request, course, "prerequisites")}
  16. % endif
## CourseTalk widget % if show_coursetalk_widget:
% endif ## For now, ocw links are the only thing that goes in additional resources % if get_course_about_section(request, course, "ocw_links"):

${_("Additional Resources")}

## "MITOpenCourseware" should *not* be translated

MITOpenCourseware

${get_course_about_section(request, course, "ocw_links")}
%endif
## Need to put this hidden form on the page so that the registration button works. ## Since it's no harm to display a hidden form, we display it with the most permissive conditional ## which is when the student is not registered. %if active_reg_button or is_shib_course:
${_("Enroll")}
%endif <%include file="../video_modal.html" />