From 03a9e85272b605ed0f03e85095493d86adc943e6 Mon Sep 17 00:00:00 2001 From: Michael Roytman Date: Fri, 20 Apr 2018 13:04:25 -0400 Subject: [PATCH] add image accessibility best practice documentation URL and pass through to studio-frontend edit image modal --- cms/envs/help_tokens.ini | 1 + cms/templates/container.html | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cms/envs/help_tokens.ini b/cms/envs/help_tokens.ini index 040a65b1c7..9ac8a16c75 100644 --- a/cms/envs/help_tokens.ini +++ b/cms/envs/help_tokens.ini @@ -33,6 +33,7 @@ container = course_author:developing_course/course_components.html#components-th video = course_author:video/index.html certificates = course_author:set_up_course/studio_add_course_information/studio_creating_certificates.html content_highlights = course_author:developing_course/course_sections.html#set-section-highlights-for-weekly-course-highlight-messages +image_accessibility = course_author:accessibility/best_practices_course_content_dev.html#use-best-practices-for-describing-images # below are the language directory names for the different locales [locales] diff --git a/cms/templates/container.html b/cms/templates/container.html index 885e0eb2ac..13c00ce434 100644 --- a/cms/templates/container.html +++ b/cms/templates/container.html @@ -174,7 +174,10 @@ from openedx.core.djangolib.markup import HTML, Text
<%static:studiofrontend entry="editImageModal"> { - "lang": "${language_code | n, js_escaped_string}" + "lang": "${language_code | n, js_escaped_string}", + "help_tokens": { + "image_accessibility": "${get_online_help_info('image_accessibility')['doc_url'] | n, js_escaped_string}" + } }