Make sure the submissions history only shows up with problems.

This commit is contained in:
David Ormsbee
2013-02-15 14:36:10 -05:00
parent 8f17e6ae9e
commit 87784d1cff

View File

@@ -14,7 +14,8 @@ ${module_content}
% endif
<div><a href="#${element_id}_debug" id="${element_id}_trig">Staff Debug Info</a></div>
% if settings.MITX_FEATURES.get('ENABLE_STUDENT_HISTORY_VIEW'):
% if settings.MITX_FEATURES.get('ENABLE_STUDENT_HISTORY_VIEW') and \
location.category == 'problem':
<div><a href="#${element_id}_history" id="${element_id}_history_trig">Submission history</a></div>
% endif