Explicit disable_accordion
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user