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 @@ ...@@ -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> <li class="prerequisites"><div class="icon prereq"></div><p>${_("Prerequisites")}</p><span class="start-date">${get_course_about_section(course, "prerequisites")}</span></li>
% endif % endif
</ol> </ol>
<%include file="theme-course_about_research.html" /> % if self.stanford_theme_enabled():
<%include file="theme-course_about_research.html" />
% endif
</section> </section>
......
...@@ -38,7 +38,9 @@ $(document).ready(function(){ ...@@ -38,7 +38,9 @@ $(document).ready(function(){
% endif % endif
<h1>${_("Course Updates &amp; News")}</h1> <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')} ${get_course_info_section(request, course, 'updates')}
</section> </section>
<section aria-label="Handout Navigation" class="handouts"> <section aria-label="Handout Navigation" class="handouts">
......
...@@ -286,8 +286,9 @@ ...@@ -286,8 +286,9 @@
</ul> </ul>
</section> </section>
% if self.stanford_theme_enabled():
<%include file='theme-dashboard-research.html' /> <%include file='theme-dashboard-research.html' />
% endif
</section> </section>
<section class="my-courses" id="my-courses"> <section class="my-courses" id="my-courses">
......
...@@ -323,9 +323,9 @@ ...@@ -323,9 +323,9 @@
% endif % endif
</ol> </ol>
</div> </div>
% if self.stanford_theme_enabled():
<%include file='theme-register-research.html' /> <%include file='theme-register-research.html' />
% endif
<div class="group group-form group-form-accountacknowledgements"> <div class="group group-form group-form-accountacknowledgements">
<h2 class="sr">${_("Account Acknowledgements")}</h2> <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