Commit b89f4d5a by Alexander Kryklia

hidden is default behaviour

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