<%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse %> <%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
% 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