## mako <%page expression_filter="h"/> <%namespace name='static' file='../static_content.html'/> <%! from itertools import izip_longest 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 from openedx.core.djangolib.markup import HTML, Text from openedx.core.djangolib.js_utils import js_escaped_string %> <%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 <%include file="../about_site.html" /> <%block name="pagetitle">${course.display_name_with_default}

${course_details.title or course.display_name}

${course_details.subtitle}

Start Date: ${course_details.start_date.strftime('%b %-d, %Y')}
Duration: ${course_details.duration}
Price: ${course_price}
<% btn_text = 'Enroll Now' btn_href = '#' btn_class = '' btn_class_bulk = '' btn_id = '' %> % if user.is_authenticated() and registered: <% btn_text = "You are enrolled in this course" btn_class = "disabled" %> % elif in_cart: <% btn_text = "This course is in your cart" btn_href = cart_link %> % elif is_course_full: <% btn_text = "Course is full" btn_class = "disabled" btn_class_bulk = btn_class %> % elif invitation_only and not can_enroll: <% btn_text = "Enrollment in this course is by invitation only" btn_class = "disabled" btn_class_bulk = btn_class %> % elif not is_shib_course and not can_enroll: <% btn_text = "Enrollment is Closed" btn_class = "disabled" btn_class_bulk = btn_class %> % elif can_add_course_to_cart: <% btn_class = "add-to-cart" btn_text = "Enroll Now" %> % if user.is_authenticated(): % if user.is_active: <% btn_href = "#" btn_id = "add_to_cart_post" %> % else: <% btn_text = "Please Activate Your Account" btn_class = "disabled" %> % endif % else: <% btn_href = reg_then_add_to_cart_link btn_id = "reg_then_add_to_cart" %> % endif % if ecommerce_checkout and ecommerce_checkout_link and user.is_authenticated(): <% btn_href = ecommerce_checkout_link %> % endif % else: % if ecommerce_checkout: % if ecommerce_checkout_link: <% btn_href = ecommerce_checkout_link %> % else: <% btn_href="#" %> % endif % if professional_mode: % if user.is_authenticated(): <% btn_class = "add-to-cart" %> % else: <% btn_class = "register" btn_class_bulk = btn_class %> % endif % endif % endif % endif

Course Description

${course_details.description}

What you'll learn

    % for item in course_details.learning_info:
  • ${item}
  • %endfor
% if can_enroll and not is_course_full:

${_("Want to purchase this course for a group?")}

${_("You can purchase enrollment codes for this course to distribute to your team")}

% if ecommerce_bulk_checkout_link: <% url = "mailto:harvardxplus@harvard.edu?Subject={course_id}%20{run}%20Bulk%20Discount".format(course_id=course_details.course_id, run=course_details.run) link_start = HTML("").format(url=Text(url)) %> ${_("Purchase for a Group")}

${Text(_("Bulk discounts may apply for groups larger than 10. Contact {link_start}harvardxplus@harvard.edu{link_end} for more information.")).format( link_start=HTML(link_start), link_end=HTML('') )}

% else: <% url = "mailto:harvardxplus@harvard.edu?Subject={course_id}%20{run}%20Group%20Purchase".format( course_id=course_details.course_id, run=course_details.run) %> ${_("Email Us")} % endif
% endif

Instructors

<% index = 0 %> % for instructors in izip_longest(*([iter(course_details.instructor_info['instructors'])] * 2)):
% for instructor in [i for i in instructors if i is not None]: <% index += 1 %>
${instructor['name']}

${instructor['name']} ${instructor['title']}

% endfor
% endfor
${HTML(course_details.overview)}
## 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 % if course_details.intro_video and course_details.video_thumbnail_image_name: % endif