From d6a3ce9b67499dcb19f1cf1ff6e434e34f6fa82c Mon Sep 17 00:00:00 2001 From: Michael Roytman Date: Tue, 26 Jun 2018 15:11:21 -0400 Subject: [PATCH] pass relevant links to studio-frontend checklist --- cms/templates/checklists.html | 12 +++++++++++- cms/templates/settings.html | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/cms/templates/checklists.html b/cms/templates/checklists.html index 87102f58fc..ad6dbd3031 100644 --- a/cms/templates/checklists.html +++ b/cms/templates/checklists.html @@ -31,6 +31,9 @@
<%static:studiofrontend entry="courseHealthCheck"> + <% + course_key = context_course.id + %> { "lang": "${language_code | n, js_escaped_string}", "course": { @@ -46,7 +49,14 @@ "help_tokens": { "files": "${get_online_help_info(online_help_token())['doc_url'] | n, js_escaped_string}" }, - "enable_quality": ${should_show_checklists_quality(request.user, context_course.id) | n, dump_js_escaped_json} + "enable_quality": ${should_show_checklists_quality(request.user, context_course.id) | n, dump_js_escaped_json}, + "links": { + "certificates": ${reverse('certificates_list_handler', kwargs={'course_key_string': unicode(course_key)})| n, dump_js_escaped_json}, + "course_outline": ${reverse('course_handler', kwargs={'course_key_string': unicode(course_key)})| n, dump_js_escaped_json}, + "course_updates": ${reverse('course_info_handler', kwargs={'course_key_string': unicode(course_key)})| n, dump_js_escaped_json}, + "grading_policy": ${reverse('grading_handler', kwargs={'course_key_string': unicode(course_key)})| n, dump_js_escaped_json}, + "settings": ${reverse('settings_handler', kwargs={'course_key_string': unicode(course_key)})| n, dump_js_escaped_json} + } }
diff --git a/cms/templates/settings.html b/cms/templates/settings.html index 4d8445b52a..1259802c7c 100644 --- a/cms/templates/settings.html +++ b/cms/templates/settings.html @@ -206,7 +206,7 @@ CMS.URL.UPLOAD_ASSET = '${upload_asset_url | n, js_escaped_string}'
-
+

${_('Course Schedule')}

${_('Dates that control when your course can be viewed')}