<%! 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 import microsite %> <% homepage_overlay_html = microsite.get_value('homepage_overlay_html') ## To display a welcome video, change False to True, and add a YouTube ID (11 chars, eg "123456789xX") in the following line show_homepage_promo_video = microsite.get_value('show_homepage_promo_video', False) homepage_promo_video_youtube_id = microsite.get_value('homepage_promo_video_youtube_id', "your-youtube-id") show_partners = microsite.get_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")}

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

% else: ## Translators: 'Open edX' is a brand, please keep this untranslated. See http://openedx.org for more information.

${_("Welcome to Open edX!")}

## Translators: 'Open edX' is a brand, please keep this untranslated. See http://openedx.org for more information.

${_("It works! This is the default homepage for this Open edX instance.")}

% endif % 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