fix errorenous logic when running a microsite that could reside in a hosting environment with a marketing site in front of it pep8/pylint fixes address PR feedback, remove underscore from test hostname more pep8/pylint cleanup. Skip test_microsites test, it works on localdev, not on Jenkins. Need to talk with QA team manually add Ned's single-to-double quote fix change aws.py runtimes so that the microsite_dir that is read from configuration is changed to a python path Conflicts: lms/templates/help_modal.html
52 lines
1.8 KiB
HTML
52 lines
1.8 KiB
HTML
<%! from django.utils.translation import ugettext as _ %>
|
|
<%inherit file="../main.html" />
|
|
|
|
<%namespace name='static' file='../static_content.html'/>
|
|
|
|
<%block name="title"><title>${_("Courses")}</title></%block>
|
|
<%! from microsite_configuration.middleware import MicrositeConfiguration %>
|
|
|
|
<section class="find-courses">
|
|
|
|
<%
|
|
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')
|
|
%>
|
|
|
|
<header class="search">
|
|
<div class="inner-wrapper main-search">
|
|
<hgroup>
|
|
<div class="logo">
|
|
% if self.stanford_theme_enabled():
|
|
<img src="${static.url('themes/stanford/images/seal.png')}" alt="Stanford Seal Logo" />
|
|
% else:
|
|
<img src='${logo_file}' alt="${MicrositeConfiguration.get_microsite_configuration_value('platform_name', settings.PLATFORM_NAME)} Logo" />
|
|
% endif
|
|
</div>
|
|
% if self.stanford_theme_enabled():
|
|
<h2>${_("Explore free courses from {university_name}.").format(university_name="Stanford University")}</h2>
|
|
% else:
|
|
<h2>${course_index_overlay_text}</h2>
|
|
% endif
|
|
</hgroup>
|
|
</div>
|
|
</header>
|
|
|
|
<section class="container">
|
|
<section class="courses">
|
|
<ul class="courses-listing">
|
|
%for course in courses:
|
|
<li class="courses-listing-item">
|
|
<%include file="../course.html" args="course=course" />
|
|
</li>
|
|
%endfor
|
|
</ul>
|
|
</section>
|
|
</section>
|
|
</section>
|