* Generate common/djangoapps import shims for LMS * Generate common/djangoapps import shims for Studio * Stop appending project root to sys.path * Stop appending common/djangoapps to sys.path * Import from common.djangoapps.course_action_state instead of course_action_state * Import from common.djangoapps.course_modes instead of course_modes * Import from common.djangoapps.database_fixups instead of database_fixups * Import from common.djangoapps.edxmako instead of edxmako * Import from common.djangoapps.entitlements instead of entitlements * Import from common.djangoapps.pipline_mako instead of pipeline_mako * Import from common.djangoapps.static_replace instead of static_replace * Import from common.djangoapps.student instead of student * Import from common.djangoapps.terrain instead of terrain * Import from common.djangoapps.third_party_auth instead of third_party_auth * Import from common.djangoapps.track instead of track * Import from common.djangoapps.util instead of util * Import from common.djangoapps.xblock_django instead of xblock_django * Add empty common/djangoapps/__init__.py to fix pytest collection * Fix pylint formatting violations * Exclude import_shims/ directory tree from linting
24 lines
938 B
HTML
24 lines
938 B
HTML
<%namespace name='static' file='/static_content.html'/>
|
|
<%page expression_filter="h"/>
|
|
|
|
<%!
|
|
import json
|
|
from django.utils.translation import ugettext 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>
|