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
b14b9511
Commit
b14b9511
authored
Jul 11, 2017
by
Christina Roberts
Committed by
GitHub
Jul 11, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15524 from edx/christina/remove-mustache
Remove unneeded mustache references.
parents
fade4a10
21bcf02d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
26 deletions
+0
-26
cms/static/cms/js/require-config.js
+0
-1
cms/static/cms/js/spec/main.js
+0
-1
cms/static/cms/js/spec/main_squire.js
+0
-1
common/static/karma_common.conf.js
+0
-1
lms/djangoapps/django_comment_client/tests/test_utils.py
+0
-15
lms/djangoapps/django_comment_client/utils.py
+0
-7
No files found.
cms/static/cms/js/require-config.js
View file @
b14b9511
...
@@ -84,7 +84,6 @@
...
@@ -84,7 +84,6 @@
waitSeconds
:
60
,
waitSeconds
:
60
,
paths
:
{
paths
:
{
'domReady'
:
'js/vendor/domReady'
,
'domReady'
:
'js/vendor/domReady'
,
'mustache'
:
'js/vendor/mustache'
,
'codemirror'
:
'js/vendor/codemirror-compressed'
,
'codemirror'
:
'js/vendor/codemirror-compressed'
,
'codemirror/stex'
:
'js/vendor/CodeMirror/stex'
,
'codemirror/stex'
:
'js/vendor/CodeMirror/stex'
,
'jquery'
:
'common/js/vendor/jquery'
,
'jquery'
:
'common/js/vendor/jquery'
,
...
...
cms/static/cms/js/spec/main.js
View file @
b14b9511
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
baseUrl
:
'/base/'
,
baseUrl
:
'/base/'
,
paths
:
{
paths
:
{
'gettext'
:
'xmodule_js/common_static/js/test/i18n'
,
'gettext'
:
'xmodule_js/common_static/js/test/i18n'
,
'mustache'
:
'xmodule_js/common_static/js/vendor/mustache'
,
'codemirror'
:
'xmodule_js/common_static/js/vendor/CodeMirror/codemirror'
,
'codemirror'
:
'xmodule_js/common_static/js/vendor/CodeMirror/codemirror'
,
'jquery'
:
'xmodule_js/common_static/common/js/vendor/jquery'
,
'jquery'
:
'xmodule_js/common_static/common/js/vendor/jquery'
,
'jquery-migrate'
:
'xmodule_js/common_static/common/js/vendor/jquery-migrate'
,
'jquery-migrate'
:
'xmodule_js/common_static/common/js/vendor/jquery-migrate'
,
...
...
cms/static/cms/js/spec/main_squire.js
View file @
b14b9511
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
baseUrl
:
'/base/'
,
baseUrl
:
'/base/'
,
paths
:
{
paths
:
{
'gettext'
:
'xmodule_js/common_static/js/test/i18n'
,
'gettext'
:
'xmodule_js/common_static/js/test/i18n'
,
'mustache'
:
'xmodule_js/common_static/js/vendor/mustache'
,
'codemirror'
:
'xmodule_js/common_static/js/vendor/CodeMirror/codemirror'
,
'codemirror'
:
'xmodule_js/common_static/js/vendor/CodeMirror/codemirror'
,
'jquery'
:
'common/js/vendor/jquery'
,
'jquery'
:
'common/js/vendor/jquery'
,
'jquery-migrate'
:
'common/js/vendor/jquery-migrate'
,
'jquery-migrate'
:
'common/js/vendor/jquery-migrate'
,
...
...
common/static/karma_common.conf.js
View file @
b14b9511
...
@@ -24,7 +24,6 @@ var options = {
...
@@ -24,7 +24,6 @@ var options = {
{
pattern
:
'js/vendor/jquery.leanModal.js'
,
included
:
true
},
{
pattern
:
'js/vendor/jquery.leanModal.js'
,
included
:
true
},
{
pattern
:
'js/vendor/jquery.timeago.js'
,
included
:
true
},
{
pattern
:
'js/vendor/jquery.timeago.js'
,
included
:
true
},
{
pattern
:
'js/vendor/jquery.truncate.js'
,
included
:
true
},
{
pattern
:
'js/vendor/jquery.truncate.js'
,
included
:
true
},
{
pattern
:
'js/vendor/mustache.js'
,
included
:
true
},
{
pattern
:
'js/vendor/URI.min.js'
,
included
:
true
},
{
pattern
:
'js/vendor/URI.min.js'
,
included
:
true
},
{
pattern
:
'js/test/add_ajax_prefix.js'
,
included
:
true
},
{
pattern
:
'js/test/add_ajax_prefix.js'
,
included
:
true
},
{
pattern
:
'js/test/i18n.js'
,
included
:
true
},
{
pattern
:
'js/test/i18n.js'
,
included
:
true
},
...
...
lms/djangoapps/django_comment_client/tests/test_utils.py
View file @
b14b9511
...
@@ -1234,21 +1234,6 @@ class JsonResponseTestCase(TestCase, UnicodeTestMixin):
...
@@ -1234,21 +1234,6 @@ class JsonResponseTestCase(TestCase, UnicodeTestMixin):
self
.
assertEqual
(
reparsed
,
text
)
self
.
assertEqual
(
reparsed
,
text
)
@attr
(
shard
=
1
)
class
RenderMustacheTests
(
TestCase
):
"""
Test the `render_mustache` utility function.
"""
@mock.patch
(
'edxmako.LOOKUP'
,
{})
def
test_it
(
self
):
"""
Basic test.
"""
add_lookup
(
'main'
,
''
,
package
=
__name__
)
self
.
assertEqual
(
utils
.
render_mustache
(
'test.mustache'
,
{}),
'Testing 1 2 3.
\n
'
)
class
DiscussionTabTestCase
(
ModuleStoreTestCase
):
class
DiscussionTabTestCase
(
ModuleStoreTestCase
):
""" Test visibility of the discussion tab. """
""" Test visibility of the discussion tab. """
...
...
lms/djangoapps/django_comment_client/utils.py
View file @
b14b9511
...
@@ -653,13 +653,6 @@ def get_metadata_for_threads(course_id, threads, user, user_info):
...
@@ -653,13 +653,6 @@ def get_metadata_for_threads(course_id, threads, user, user_info):
metadata
=
reduce
(
merge_dict
,
map
(
infogetter
,
threads
),
{})
metadata
=
reduce
(
merge_dict
,
map
(
infogetter
,
threads
),
{})
return
metadata
return
metadata
# put this method in utils.py to avoid circular import dependency between helpers and mustache_helpers
def
render_mustache
(
template_name
,
dictionary
,
*
args
,
**
kwargs
):
template
=
lookup_template
(
'main'
,
template_name
)
.
source
return
pystache
.
render
(
template
,
dictionary
)
def
permalink
(
content
):
def
permalink
(
content
):
if
isinstance
(
content
[
'course_id'
],
CourseKey
):
if
isinstance
(
content
[
'course_id'
],
CourseKey
):
...
...
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