Commit b89f4d5a by Alexander Kryklia

hidden is default behaviour

parent f01e618a
...@@ -92,7 +92,8 @@ class ConditionalModule(XModule): ...@@ -92,7 +92,8 @@ class ConditionalModule(XModule):
an AJAX call. an AJAX call.
""" """
if not self.is_condition_satisfied(): if not self.is_condition_satisfied():
context = {'module': self} context = {'module': self,
'show_deps': False}
html = self.system.render_template('conditional_module.html', html = self.system.render_template('conditional_module.html',
context) context)
return json.dumps({'html': [html]}) return json.dumps({'html': [html]})
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
return module.location.org +'/' + module.location.course +'/' + module.system.ajax_url.split('/')[4] return module.location.org +'/' + module.location.course +'/' + module.system.ajax_url.split('/')[4]
%> %>
% for reqm in module.required_modules: % if show_deps
<p><a href="${reverse('jump_to',kwargs=dict(course_id=get_course_id(reqm), location=reqm.location.url()))}">${reqm.display_name}</a> % for reqm in module.required_modules:
must be completed before this will become visible.</p> <p><a href="${reverse('jump_to',kwargs=dict(course_id=get_course_id(reqm), location=reqm.location.url()))}">${reqm.display_name}</a>
% endfor must be completed before this will become visible.</p>
% endfor
% endif
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