Commit 5591101a by Chris Dodge

only show proctoring download button when the course has proctoring enabled

parent 7eb41ed8
...@@ -490,11 +490,17 @@ def _section_extensions(course): ...@@ -490,11 +490,17 @@ def _section_extensions(course):
def _section_data_download(course, access): def _section_data_download(course, access):
""" Provide data for the corresponding dashboard section """ """ Provide data for the corresponding dashboard section """
course_key = course.id course_key = course.id
show_proctored_report_button = (
settings.FEATURES.get('ENABLE_PROCTORED_EXAMS', False) and
course.enable_proctored_exams
)
section_data = { section_data = {
'section_key': 'data_download', 'section_key': 'data_download',
'section_display_name': _('Data Download'), 'section_display_name': _('Data Download'),
'access': access, 'access': access,
'show_generate_proctored_exam_report_button': settings.FEATURES.get('ENABLE_PROCTORED_EXAMS', False), 'show_generate_proctored_exam_report_button': show_proctored_report_button,
'get_problem_responses_url': reverse('get_problem_responses', kwargs={'course_id': unicode(course_key)}), 'get_problem_responses_url': reverse('get_problem_responses', kwargs={'course_id': unicode(course_key)}),
'get_grading_config_url': reverse('get_grading_config', kwargs={'course_id': unicode(course_key)}), 'get_grading_config_url': reverse('get_grading_config', kwargs={'course_id': unicode(course_key)}),
'get_students_features_url': reverse('get_students_features', kwargs={'course_id': unicode(course_key)}), 'get_students_features_url': reverse('get_students_features', kwargs={'course_id': unicode(course_key)}),
......
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