From 425e3208bb1624bca04b6842d4dc97c60b1c12fc Mon Sep 17 00:00:00 2001 From: Farhanah Sheets Date: Fri, 22 Dec 2017 14:02:39 -0500 Subject: [PATCH 1/2] Pass readthedocs course_author files path to studio-frontend assets page --- cms/templates/asset_index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cms/templates/asset_index.html b/cms/templates/asset_index.html index 68321a0bfd..ce3a33174a 100644 --- a/cms/templates/asset_index.html +++ b/cms/templates/asset_index.html @@ -66,6 +66,9 @@ "num": "${context_course.location.course | n, js_escaped_string}", "display_course_number": "${context_course.display_coursenumber | n, js_escaped_string}", "revision": "${context_course.location.revision | n, js_escaped_string}" + }, + "help_tokens": { + "files": "${get_online_help_info(online_help_token())['doc_url']}" } } From cfdfec1d204ef87aa60023719d174275605d5102 Mon Sep 17 00:00:00 2001 From: Farhanah Sheets Date: Wed, 27 Dec 2017 11:25:36 -0500 Subject: [PATCH 2/2] Add mako js filter --- cms/templates/asset_index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/templates/asset_index.html b/cms/templates/asset_index.html index ce3a33174a..6340563b2f 100644 --- a/cms/templates/asset_index.html +++ b/cms/templates/asset_index.html @@ -68,7 +68,7 @@ "revision": "${context_course.location.revision | n, js_escaped_string}" }, "help_tokens": { - "files": "${get_online_help_info(online_help_token())['doc_url']}" + "files": "${get_online_help_info(online_help_token())['doc_url'] | n, js_escaped_string}" } }