TNL-213: Let Students Add Personal Notes to Course Content.
Co-Authored-By: Jean-Michel Claus <jmc@edx.org> Co-Authored-By: Brian Talbot <btalbot@edx.org> Co-Authored-By: Tim Babych <tim@edx.org> Co-Authored-By: Oleg Marshev <oleg@edx.org> Co-Authored-By: Chris Rodriguez <crodriguez@edx.org>
This commit is contained in:
17
common/templates/edxnotes_wrapper.html
Normal file
17
common/templates/edxnotes_wrapper.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<%! import json %>
|
||||
<%! from student.models import anonymous_id_for_user %>
|
||||
<%
|
||||
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}</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
(function (require) {
|
||||
require(['js/edxnotes/views/visibility_decorator'], function(EdxnotesVisibilityDecorator) {
|
||||
var element = document.getElementById('edx-notes-wrapper-${uid}');
|
||||
EdxnotesVisibilityDecorator.factory(element, ${json.dumps(params)}, ${edxnotes_visibility});
|
||||
});
|
||||
}).call(this, require || RequireJS.require);
|
||||
</script>
|
||||
Reference in New Issue
Block a user