diff --git a/lms/djangoapps/instructor/views/instructor_dashboard.py b/lms/djangoapps/instructor/views/instructor_dashboard.py index 8db5957c14..7a10e24395 100644 --- a/lms/djangoapps/instructor/views/instructor_dashboard.py +++ b/lms/djangoapps/instructor/views/instructor_dashboard.py @@ -241,6 +241,9 @@ def _section_course_info(course, access): message = _("Enrollment data is now available in {dashboard_link}.").format(dashboard_link=dashboard_link) section_data['enrollment_message'] = message + if settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD'): + section_data['detailed_gitlogs_url'] = reverse('gitlogs_detail', kwargs={'course_id': unicode(course_key)}) + try: advance = lambda memo, (letter, score): "{}: {}, ".format(letter, score) + memo section_data['grade_cutoffs'] = reduce(advance, course.grade_cutoffs.items(), "")[:-2] diff --git a/lms/templates/instructor/instructor_dashboard_2/course_info.html b/lms/templates/instructor/instructor_dashboard_2/course_info.html index f71fb53646..2a59718c2c 100644 --- a/lms/templates/instructor/instructor_dashboard_2/course_info.html +++ b/lms/templates/instructor/instructor_dashboard_2/course_info.html @@ -70,12 +70,21 @@ ${_("No")} %endif -
  • ${ section_data['grade_cutoffs'] }
  • + + %if settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD', ''): +

    + ## Translators: git is a version-control system; see http://git-scm.com/about + ${_("View detailed Git import logs for this course {link_start}by clicking here{link_end}.").format( + link_start=''.format(section_data['detailed_gitlogs_url']), + link_end='' + )} +

    + %endif