Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
31ca2a63
Commit
31ca2a63
authored
Apr 08, 2016
by
Muzaffar yousaf
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12041 from edx/mzfr/fixup-safe-templates
Safe template for edxnotes.
parents
b2a8fb77
03c80125
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lms/templates/edxnotes/toggle_notes.html
+6
-3
No files found.
lms/templates/edxnotes/toggle_notes.html
View file @
31ca2a63
<
%
page
args=
"course"
expression_filter=
"h"
/>
<
%!
import
json
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
core
.
urlresolvers
import
reverse
from
openedx
.
core
.
djangolib
.
js_utils
import
dump_js_escaped_json
,
js_escaped_string
%
>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
page
args=
"course"
/>
<
%
edxnotes_visibility =
course.edxnotes_visibility
...
...
@@ -23,5 +23,8 @@ from django.core.urlresolvers import reverse
</div>
<
%
static:require_module
module_name=
"js/edxnotes/views/notes_visibility_factory"
class_name=
"NotesVisibilityFactory"
>
NotesVisibilityFactory.ToggleVisibilityView(${json.dumps(edxnotes_visibility)}, '${edxnotes_visibility_url}');
NotesVisibilityFactory.ToggleVisibilityView(
${edxnotes_visibility | n, dump_js_escaped_json},
'${edxnotes_visibility_url | n, js_escaped_string}'
);
</
%
static:require
_module
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment