Skip to content
Snippets Groups Projects
Unverified Commit 085817f4 authored by Michael Roytman's avatar Michael Roytman Committed by GitHub
Browse files

Merge pull request #18085 from edx/mroytman/pass-course-details-to-image-modal

pass courseDetails to editImageModal
parents 7a711861 8e9e3dac
Branches
Tags
No related merge requests found
......@@ -176,10 +176,19 @@ from openedx.core.djangolib.markup import HTML, Text
<div id="edit-image-modal">
<%static:studiofrontend entry="editImageModal">
{
"lang": "${language_code | n, js_escaped_string}",
"course": {
"id": "${context_course.id | n, js_escaped_string}",
"name": "${context_course.display_name_with_default | n, js_escaped_string}",
"url_name": "${context_course.location.name | n, js_escaped_string}",
"org": "${context_course.location.org | n, js_escaped_string}",
"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": {
"image_accessibility": "${get_online_help_info('image_accessibility')['doc_url'] | n, js_escaped_string}"
}
},
"lang": "${language_code | n, js_escaped_string}"
}
</%static:studiofrontend>
</div>
......
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