diff --git a/cms/djangoapps/contentstore/tests/test_utils.py b/cms/djangoapps/contentstore/tests/test_utils.py
index f326cbfa805b..2b424c7e04d8 100644
--- a/cms/djangoapps/contentstore/tests/test_utils.py
+++ b/cms/djangoapps/contentstore/tests/test_utils.py
@@ -51,9 +51,8 @@ def lms_link_for_certificate_web_view_test(self):
mode = 'professional'
self.assertEqual(
- utils.get_lms_link_for_certificate_web_view(dummy_user, course_key, mode),
- "//localhost:8000/certificates/user/{user_id}/course/{course_key}?preview={mode}".format(
- user_id=dummy_user,
+ utils.get_lms_link_for_certificate_web_view(course_key, mode),
+ "//localhost:8000/certificates/course/{course_key}?preview={mode}".format(
course_key=course_key,
mode=mode
)
@@ -61,9 +60,8 @@ def lms_link_for_certificate_web_view_test(self):
with with_site_configuration_context(configuration={"course_org_filter": "mitX", "LMS_BASE": "dummyhost:8000"}):
self.assertEqual(
- utils.get_lms_link_for_certificate_web_view(dummy_user, course_key, mode),
- "//dummyhost:8000/certificates/user/{user_id}/course/{course_key}?preview={mode}".format(
- user_id=dummy_user,
+ utils.get_lms_link_for_certificate_web_view(course_key, mode),
+ "//dummyhost:8000/certificates/course/{course_key}?preview={mode}".format(
course_key=course_key,
mode=mode
)
diff --git a/cms/djangoapps/contentstore/utils.py b/cms/djangoapps/contentstore/utils.py
index 273301e9b8c2..6332cf0b9692 100644
--- a/cms/djangoapps/contentstore/utils.py
+++ b/cms/djangoapps/contentstore/utils.py
@@ -138,7 +138,7 @@ def get_lms_link_for_item(location, preview=False):
)
-def get_lms_link_for_certificate_web_view(user_id, course_key, mode):
+def get_lms_link_for_certificate_web_view(course_key, mode):
"""
Returns the url to the certificate web view.
"""
@@ -150,9 +150,8 @@ def get_lms_link_for_certificate_web_view(user_id, course_key, mode):
if lms_base is None:
return None
- return u"//{certificate_web_base}/certificates/user/{user_id}/course/{course_id}?preview={mode}".format(
+ return u"//{certificate_web_base}/certificates/course/{course_id}?preview={mode}".format(
certificate_web_base=lms_base,
- user_id=user_id,
course_id=six.text_type(course_key),
mode=mode
)
diff --git a/cms/djangoapps/contentstore/views/certificates.py b/cms/djangoapps/contentstore/views/certificates.py
index cb176272557e..3c13e502bfbb 100644
--- a/cms/djangoapps/contentstore/views/certificates.py
+++ b/cms/djangoapps/contentstore/views/certificates.py
@@ -407,7 +407,6 @@ def certificates_list_handler(request, course_key_string):
if has_certificate_modes:
certificate_web_view_url = get_lms_link_for_certificate_web_view(
- user_id=request.user.id,
course_key=course_key,
mode=course_modes[0] # CourseMode.modes_for_course returns default mode if doesn't find anyone.
)
diff --git a/cms/djangoapps/contentstore/views/tests/test_certificates.py b/cms/djangoapps/contentstore/views/tests/test_certificates.py
index 64ae391245a4..cf60e7817c5c 100644
--- a/cms/djangoapps/contentstore/views/tests/test_certificates.py
+++ b/cms/djangoapps/contentstore/views/tests/test_certificates.py
@@ -263,7 +263,6 @@ def test_cannot_create_certificate_if_user_has_no_write_permissions(self):
@override_settings(LMS_BASE=None)
def test_no_lms_base_for_certificate_web_view_link(self):
test_link = get_lms_link_for_certificate_web_view(
- user_id=self.user.id,
course_key=self.course.id,
mode='honor'
)
@@ -271,10 +270,9 @@ def test_no_lms_base_for_certificate_web_view_link(self):
@override_settings(LMS_BASE="lms_base_url")
def test_lms_link_for_certificate_web_view(self):
- test_url = "//lms_base_url/certificates/user/" \
- + str(self.user.id) + "/course/" + six.text_type(self.course.id) + '?preview=honor'
+ test_url = "//lms_base_url/certificates/" \
+ "course/" + six.text_type(self.course.id) + '?preview=honor'
link = get_lms_link_for_certificate_web_view(
- user_id=self.user.id,
course_key=self.course.id,
mode='honor'
)
diff --git a/cms/templates/js/group-configuration-details.underscore b/cms/templates/js/group-configuration-details.underscore
index 8310a2a657bf..f3fd77971827 100644
--- a/cms/templates/js/group-configuration-details.underscore
+++ b/cms/templates/js/group-configuration-details.underscore
@@ -31,9 +31,9 @@
<% if(showGroups) { %>
<% allocation = Math.floor(100 / groups.length) %>
-
+
<% groups.each(function(group, groupIndex) { %>
- -
+
-
<%- group.get('name') %>
<%- allocation %>%
diff --git a/cms/templates/js/maintenance/force-published-course-response.underscore b/cms/templates/js/maintenance/force-published-course-response.underscore
index d77059ca5311..7441413dd47c 100644
--- a/cms/templates/js/maintenance/force-published-course-response.underscore
+++ b/cms/templates/js/maintenance/force-published-course-response.underscore
@@ -3,7 +3,7 @@
<%- gettext('You have done a dry run of force publishing the course. Nothing has changed. Had you run it, the following course versions would have been change.') %>
- <%= StringUtils.interpolate(
+ <%- StringUtils.interpolate(
gettext('The published branch version, {published}, was reset to the draft branch version, {draft}.'),
{
published: current_versions['published-branch'],
diff --git a/cms/templates/js/mock/mock-xmodule-editor.underscore b/cms/templates/js/mock/mock-xmodule-editor.underscore
index cb9a59c6f5b2..d65921f3891a 100644
--- a/cms/templates/js/mock/mock-xmodule-editor.underscore
+++ b/cms/templates/js/mock/mock-xmodule-editor.underscore
@@ -16,13 +16,13 @@
diff --git a/cms/templates/js/publish-editor.underscore b/cms/templates/js/publish-editor.underscore
index 27c4ce290274..519564f72198 100644
--- a/cms/templates/js/publish-editor.underscore
+++ b/cms/templates/js/publish-editor.underscore
@@ -6,13 +6,13 @@
<% _.each(xblockInfo.get('child_info').children, function(subsection) { %>
<% if (subsection.isPublishable()) { %>
-
-
<%= subsection.get('display_name') %>
+ <%- subsection.get('display_name') %>
<% _.each(subsection.get('child_info').children, function(unit) { %>
<% if (unit.isPublishable()) { %>
-
- <%= unit.get('display_name') %>
+ <%- unit.get('display_name') %>
<% } %>
<% }); %>
@@ -27,7 +27,7 @@
<% _.each(xblockInfo.get('child_info').children, function(unit) { %>
<% if (unit.isPublishable()) { %>
-
- <%= unit.get('display_name') %>
+ <%- unit.get('display_name') %>
<% } %>
<% }); %>
diff --git a/cms/templates/js/unit-outline.underscore b/cms/templates/js/unit-outline.underscore
index b5e48f72fd32..8ea1ddf1098a 100644
--- a/cms/templates/js/unit-outline.underscore
+++ b/cms/templates/js/unit-outline.underscore
@@ -1,23 +1,23 @@
<% if (parentInfo) { %>
- -
-