Explicit disable_accordion

This commit is contained in:
Piotr Mitros
2014-06-20 10:29:17 -04:00
parent 17d2420f7b
commit e644f641ac
2 changed files with 3 additions and 3 deletions

View File

@@ -350,7 +350,7 @@ def index(request, course_id, chapter=None, section=None,
if section_descriptor.chrome:
chrome = [s.strip() for s in section_descriptor.chrome.lower().split(",")]
if 'accordion' not in chrome:
del context['accordion']
context['disable_accordion'] = True
if 'tabs' not in chrome:
context['disable_tabs'] = True

View File

@@ -179,7 +179,7 @@ ${fragment.foot_html()}
</div>
% endif
<%include file="/dashboard/_dashboard_prompt_midcourse_reverify.html" />
<%include file="/dashboard/_dashboard_prompt_midcourse_reverify.html" />
% if default_tab:
<%include file="/courseware/course_navigation.html" />
% else:
@@ -189,7 +189,7 @@ ${fragment.foot_html()}
<div class="container">
<div class="course-wrapper">
% if accordion:
% if not disable_accordion:
<div class="course-index" role="navigation">
<header id="open_close_accordion">
<a href="#">${_("close")}</a>