<%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse %> <%! from time import strftime %> <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> <%! from microsite_configuration.middleware import MicrositeConfiguration %> <% homepage_overlay_html = MicrositeConfiguration.get_microsite_configuration_value('homepage_overlay_html') show_homepage_promo_video = MicrositeConfiguration.get_microsite_configuration_value('show_homepage_promo_video', True) homepage_promo_video_youtube_id = MicrositeConfiguration.get_microsite_configuration_value('homepage_promo_video_youtube_id', "XNaiOGxWeto") show_partners = MicrositeConfiguration.get_microsite_configuration_value('show_partners', True) %>
% if homepage_overlay_html: ${homepage_overlay_html} % else: % if self.stanford_theme_enabled():

${_("Free courses from {university_name}").format(university_name="Stanford")}

% else:

${_("The Future of Online Education")}

% endif

${_("For anyone, anywhere, anytime")}

% endif
## Disable social buttons for non-edX sites % if not self.theme_enabled():
% endif
% if show_homepage_promo_video:
% endif
## Disable university partner logos and sites for non-edX sites % if not self.theme_enabled() and show_partners:

${_('Explore free courses from {span_start}{platform_name}{span_end} universities').format(platform_name="edX", span_start='', span_end='')}

  1. MITx
  2. HarvardX
  3. BerkeleyX
  4. UTx
  5. McGillX
  6. ANUx

  1. WellesleyX
  2. GeorgetownX
  3. University of TorontoX
  4. EPFLx
  5. DelftX
  6. RiceX
% endif % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
    %for course in courses:
  • <%include file="course.html" args="course=course" />
  • %endfor
% endif
<%block name="js_extra"> % if show_signup_immediately is not UNDEFINED: ## NOTE: This won't work in production, because anonymous views are cached, so it will ## show either with or without this extra js for 3 minutes at a time. % endif