Commit 346d4d98 by Jason Bau Committed by stv

Include template iff theme enabled

conditionally do template includes to fix lms tests
parent 3d08be33
......@@ -356,7 +356,9 @@
<li class="prerequisites"><div class="icon prereq"></div><p>${_("Prerequisites")}</p><span class="start-date">${get_course_about_section(course, "prerequisites")}</span></li>
% endif
</ol>
<%include file="theme-course_about_research.html" />
% if self.stanford_theme_enabled():
<%include file="theme-course_about_research.html" />
% endif
</section>
......
......@@ -38,7 +38,9 @@ $(document).ready(function(){
% endif
<h1>${_("Course Updates &amp; News")}</h1>
<%include file="theme-info_research.html" />
% if self.stanford_theme_enabled():
<%include file="theme-info_research.html" />
% endif
${get_course_info_section(request, course, 'updates')}
</section>
<section aria-label="Handout Navigation" class="handouts">
......
......@@ -286,8 +286,9 @@
</ul>
</section>
<%include file='theme-dashboard-research.html' />
% if self.stanford_theme_enabled():
<%include file='theme-dashboard-research.html' />
% endif
</section>
<section class="my-courses" id="my-courses">
......
......@@ -323,9 +323,9 @@
% endif
</ol>
</div>
<%include file='theme-register-research.html' />
% if self.stanford_theme_enabled():
<%include file='theme-register-research.html' />
% endif
<div class="group group-form group-form-accountacknowledgements">
<h2 class="sr">${_("Account Acknowledgements")}</h2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment