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
21bcf02d
Commit
21bcf02d
authored
Jul 11, 2017
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded mustache references.
parent
4d157db6
Show 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 @
21bcf02d
...
...
@@ -84,7 +84,6 @@
waitSeconds
:
60
,
paths
:
{
'domReady'
:
'js/vendor/domReady'
,
'mustache'
:
'js/vendor/mustache'
,
'codemirror'
:
'js/vendor/codemirror-compressed'
,
'codemirror/stex'
:
'js/vendor/CodeMirror/stex'
,
'jquery'
:
'common/js/vendor/jquery'
,
...
...
cms/static/cms/js/spec/main.js
View file @
21bcf02d
...
...
@@ -26,7 +26,6 @@
baseUrl
:
'/base/'
,
paths
:
{
'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'
,
'jquery'
:
'xmodule_js/common_static/common/js/vendor/jquery'
,
'jquery-migrate'
:
'xmodule_js/common_static/common/js/vendor/jquery-migrate'
,
...
...
cms/static/cms/js/spec/main_squire.js
View file @
21bcf02d
...
...
@@ -10,7 +10,6 @@
baseUrl
:
'/base/'
,
paths
:
{
'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'
,
'jquery'
:
'common/js/vendor/jquery'
,
'jquery-migrate'
:
'common/js/vendor/jquery-migrate'
,
...
...
common/static/karma_common.conf.js
View file @
21bcf02d
...
...
@@ -24,7 +24,6 @@ var options = {
{
pattern
:
'js/vendor/jquery.leanModal.js'
,
included
:
true
},
{
pattern
:
'js/vendor/jquery.timeago.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/test/add_ajax_prefix.js'
,
included
:
true
},
{
pattern
:
'js/test/i18n.js'
,
included
:
true
},
...
...
lms/djangoapps/django_comment_client/tests/test_utils.py
View file @
21bcf02d
...
...
@@ -1234,21 +1234,6 @@ class JsonResponseTestCase(TestCase, UnicodeTestMixin):
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
):
""" Test visibility of the discussion tab. """
...
...
lms/djangoapps/django_comment_client/utils.py
View file @
21bcf02d
...
...
@@ -628,13 +628,6 @@ def get_metadata_for_threads(course_id, threads, user, user_info):
metadata
=
reduce
(
merge_dict
,
map
(
infogetter
,
threads
),
{})
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
):
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