Commit e644f641 by Piotr Mitros

Explicit disable_accordion

parent 17d2420f
...@@ -350,7 +350,7 @@ def index(request, course_id, chapter=None, section=None, ...@@ -350,7 +350,7 @@ def index(request, course_id, chapter=None, section=None,
if section_descriptor.chrome: if section_descriptor.chrome:
chrome = [s.strip() for s in section_descriptor.chrome.lower().split(",")] chrome = [s.strip() for s in section_descriptor.chrome.lower().split(",")]
if 'accordion' not in chrome: if 'accordion' not in chrome:
del context['accordion'] context['disable_accordion'] = True
if 'tabs' not in chrome: if 'tabs' not in chrome:
context['disable_tabs'] = True context['disable_tabs'] = True
......
...@@ -179,7 +179,7 @@ ${fragment.foot_html()} ...@@ -179,7 +179,7 @@ ${fragment.foot_html()}
</div> </div>
% endif % endif
<%include file="/dashboard/_dashboard_prompt_midcourse_reverify.html" /> <%include file="/dashboard/_dashboard_prompt_midcourse_reverify.html" />
% if default_tab: % if default_tab:
<%include file="/courseware/course_navigation.html" /> <%include file="/courseware/course_navigation.html" />
% else: % else:
...@@ -189,7 +189,7 @@ ${fragment.foot_html()} ...@@ -189,7 +189,7 @@ ${fragment.foot_html()}
<div class="container"> <div class="container">
<div class="course-wrapper"> <div class="course-wrapper">
% if accordion: % if not disable_accordion:
<div class="course-index" role="navigation"> <div class="course-index" role="navigation">
<header id="open_close_accordion"> <header id="open_close_accordion">
<a href="#">${_("close")}</a> <a href="#">${_("close")}</a>
......
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