/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
cms/templates/checklists.html
75 строк
4 KB
Diana Huang
Revert "Merge ulmo.1 into release-ulmo"
27 май 2026, 23:07
Не верифицирован
27 май 2026, 23:07
3a8fdad
Код
Авторство
О чём код?
<%page expression_filter="h"/> <%inherit file="base.html" /> <%def name="online_help_token()"><% return "files" %></%def> <%! from cms.djangoapps.contentstore import utils from cms.djangoapps.contentstore.config.waffle_utils import should_show_checklists_quality from django.urls import reverse from django.utils.translation import gettext as _ from openedx.core.djangolib.markup import HTML, Text from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json from common.djangoapps.util.course import has_certificates_enabled %> <%block name="title">${_("Checklists")}</%block> <%block name="bodyclass">is-signedin course view-checklists</%block> <%namespace name='static' file='static_content.html'/> <%block name="header_extras"> % if not settings.STUDIO_FRONTEND_CONTAINER_URL: <link rel="stylesheet" type="text/css" href="${static.url('common/css/vendor/common.min.css')}" /> <link rel="stylesheet" type="text/css" href="${static.url('common/css/vendor/courseHealthCheck.min.css')}" /> % endif </%block> <%block name="content"> <div class="wrapper-mast wrapper"> <header class="mast has-actions has-subtitle"> <h2 class="page-header"> <small class="subtitle">${_("Tools")}</small> <span class="sr">- </span>${_("Checklists")} </h2> </header> </div> <div class="wrapper-content wrapper"> <div class="content"> <%static:studiofrontend entry="courseHealthCheck"> <% course_key = str(context_course.id) certificates_url = '' if has_certificates_enabled(context_course): certificates_url = utils.reverse_course_url('certificates_list_handler', course_key) %> { "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}", "is_course_self_paced": ${context_course.self_paced | n, dump_js_escaped_json}, "url_name": "${context_course.location.block_id | 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": { "files": "${get_online_help_info(online_help_token())['doc_url'] | n, js_escaped_string}" }, "enable_quality": ${should_show_checklists_quality(context_course.id) | n, dump_js_escaped_json}, "links": { "certificates": ${certificates_url | n, dump_js_escaped_json}, "course_outline": ${utils.reverse_course_url('course_handler', course_key) | n, dump_js_escaped_json}, "course_updates": ${utils.reverse_course_url('course_info_handler', course_key) | n, dump_js_escaped_json}, "grading_policy": ${utils.reverse_course_url('grading_handler', course_key) | n, dump_js_escaped_json}, "settings": ${utils.reverse_course_url('settings_handler', course_key) | n, dump_js_escaped_json}, "proctored_exam_settings": ${mfe_proctored_exam_settings_url | n, dump_js_escaped_json} } } </%static:studiofrontend> </div> </div> </%block>