## mako <%page expression_filter="h"/> <%inherit file="/main.html" /> <%! from datetime import datetime from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from mako import exceptions from urlparse import urljoin from openedx.core.djangolib.markup import HTML, Text %> <%namespace name='static' file='../static_content.html'/> ## Override the default styles_version to use Bootstrap <%! main_css = "css/bootstrap/lms-main.css" %> <% %> <%block name="js_extra"> <%block name="pagetitle">${bundle['title']} <%block name="marketing_hero"> <% banner_image = bundle.get('banner_image', {}).get('large', {}).get('url', '') price_format = '{0:.0f}' if bundle['pricing_data']['total_incl_tax'].is_integer() else '{0:.2f}' %>
% if bundle.get('courses') or bundle.get('journals'):

${_('Courses included')}

% for course in bundle.get('courses'): <% course_run = course['course_runs'][0] course_img = course.get('image', {}).get('src', '') if course.get('image') else '' course_about_url = reverse('about_course', args=[course_run['key']]) %>
% if course_img: % endif
${course_run['title']}
${course['short_description'] or ''}
${Text(_('Starts on {}')).format( datetime.strptime(course_run['start'], '%Y-%m-%dT%H:%M:%SZ').strftime('%B %-d, %Y') )}
${_("View Course")}
% endfor % for journal in bundle.get('journals'):

${_('Journals included')}

% if journal.get('card_image_url'): % endif
${journal['title']}
${journal['short_description'] or ''}
${_('{access_length} Day Access').format( access_length=journal['access_length'] )}
${_("View Journal")}
% endfor
% endif