<%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse from courseware.courses import course_image_url, get_course_about_section from courseware.access import has_access from django.conf import settings from edxmako.shortcuts import marketing_link if settings.FEATURES.get('ENABLE_SHOPPING_CART'): cart_link = reverse('shoppingcart.views.show_cart') else: cart_link = "" %> <%namespace name='static' file='../static_content.html'/> <%! from microsite_configuration import microsite %> <%inherit file="../main.html" /> <%block name="headextra"> <% if self.theme_enabled(): google_analytics_file = u'../{ga}'.format( ga=microsite.get_value('google_analytics_file', 'theme-google-analytics.html') ) else: google_analytics_file = '../google_analytics.html' %> <%include file="${google_analytics_file}" /> ## 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"> <%block name="pagetitle">${_("About {course.display_number_with_default}").format(course=course) | h}

${course.display_number_with_default | h}: ${get_course_about_section(course, "title")} % if not self.theme_enabled(): ${get_course_about_section(course, "university")} % endif

%if user.is_authenticated() and registered: %if show_courseware_link: %endif ${_("You are registered for this course")} %if show_courseware_link: ${_("View Courseware")} %endif %elif in_cart: ${_('This course is in your cart.').format(cart_link=cart_link)} %elif settings.FEATURES.get('ENABLE_PAID_COURSE_REGISTRATION') and registration_price: <% 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" %> ${_("Add {course.display_number_with_default} to Cart ({currency_symbol}{cost})")\ .format(course=course, currency_symbol=settings.PAID_COURSE_REGISTRATION_CURRENCY[1], cost=registration_price)}
% elif is_course_full: ${_("Course is full")} %else: ${_("Register for {course.display_number_with_default}").format(course=course) | h}
%endif
% if get_course_about_section(course, "video"):
%else:
% endif
% if staff_access and studio_url is not None: % endif
${get_course_about_section(course, "overview")}
% if microsite.get_value('course_about_show_social_links', True): % endif
  1. ${_("Course Number")}

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

    ${course.start_date_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(course, "end_date") or course.end:
  5. ${_("Classes End")}

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

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

    ${_('{number} weeks').format(number=15)}
  10. % if get_course_about_section(course, "prerequisites"):
  11. ${_("Prerequisites")}

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

${_("Additional Resources")}

## "MITOpenCourseware" should *not* be translated

MITOpenCourseware

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