/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
common/templates/edxnotes_wrapper.html
23 строки
937 B
Usama Sadiq
fix: replace ugettext with gettext (#33022)
16 авг 2023, 15:07
Не верифицирован
16 авг 2023, 15:07
852246d
Код
Авторство
О чём код?
<%namespace name='static' file='/static_content.html'/> <%page expression_filter="h"/> <%! import json from django.utils.translation import gettext as _ from common.djangoapps.student.models import anonymous_id_for_user from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json %> <% if user: params.update({'user': anonymous_id_for_user(user, None)}) %> <div id="edx-notes-wrapper-${uid}" class="edx-notes-wrapper"> <div class="edx-notes-wrapper-content">${content | n, decode.utf8 }</div> </div> <%static:require_module_async module_name="js/edxnotes/views/notes_visibility_factory" class_name="NotesVisibilityFactory"> var element = document.getElementById('edx-notes-wrapper-${uid | n, js_escaped_string}'); NotesVisibilityFactory.VisibilityDecorator.factory(element, ${params | n, dump_js_escaped_json}, ${edxnotes_visibility | n, decode.utf8}); </%static:require_module_async>