%! from django.utils.translation import ugettext as _ %>
<%inherit file="../main.html" />
<%namespace name='static' file='../static_content.html'/>
<%block name="title">
${_("Courses")}%block>
<%! from microsite_configuration.middleware import MicrositeConfiguration %>
<%
course_index_overlay_text = MicrositeConfiguration.get_microsite_configuration_value('course_index_overlay_text', _("Explore free courses from leading universities."))
# not sure why this is, but if I use static.url('images/edx_bw.png') then the HTML rendering
# of this template goes wonky
logo_file = MicrositeConfiguration.get_microsite_configuration_value(
'course_index_overlay_logo_file', settings.STATIC_URL + 'images/edx_bw.png')
%>
% if self.stanford_theme_enabled():
})
% else:

% endif
% if self.stanford_theme_enabled():
${_("Explore free courses from {university_name}.").format(university_name="Stanford University")}
% else:
${course_index_overlay_text}
% endif
%for course in courses:
-
<%include file="../course.html" args="course=course" />
%endfor