diff --git a/cms/static/js/spec/views/pages/course_outline_spec.js b/cms/static/js/spec/views/pages/course_outline_spec.js index 0e75353199..fc55c788a3 100644 --- a/cms/static/js/spec/views/pages/course_outline_spec.js +++ b/cms/static/js/spec/views/pages/course_outline_spec.js @@ -523,10 +523,10 @@ define(["jquery", "js/spec_helpers/create_sinon", "js/spec_helpers/view_helpers" create_sinon.respondWithJson(requests, mockServerValuesJson); expect($(".outline-subsection .status-release-value")).toContainText("Jul 09, 2014 at 00:00 UTC"); - expect($(".outline-subsection .due-date")).toContainText("Due date: Jul 10, 2014 at 00:00 UTC"); - expect($(".outline-subsection .policy")).toContainText("Policy: Lab"); + expect($(".outline-subsection .status-grading-date")).toContainText("Due: Jul 10, 2014 at 00:00 UTC"); + expect($(".outline-subsection .status-grading-value")).toContainText("Lab"); - expect($(".outline-item .outline-subsection .policy")).toContainText("Policy: Lab"); + expect($(".outline-item .outline-subsection .status-grading-value")).toContainText("Lab"); outlinePage.$('.outline-item .outline-subsection .configure-button').click(); expect($("#start_date").val()).toBe('7/9/2014'); expect($("#due_date").val()).toBe('7/10/2014'); @@ -545,8 +545,8 @@ define(["jquery", "js/spec_helpers/create_sinon", "js/spec_helpers/view_helpers" create_sinon.respondWithJson(requests, mockServerValuesJson); expect($(".outline-subsection .status-release-value")).toContainText("Jul 09, 2014 at 00:00 UTC"); - expect($(".outline-subsection .due-date")).toContainText("Due date: Jul 10, 2014 at 00:00 UTC"); - expect($(".outline-subsection .policy")).toContainText("Policy: Lab"); + expect($(".outline-subsection .status-grading-date")).toContainText("Due: Jul 10, 2014 at 00:00 UTC"); + expect($(".outline-subsection .status-grading-value")).toContainText("Lab"); outlinePage.$('.outline-subsection .configure-button').click(); expect($("#start_date").val()).toBe('7/9/2014'); @@ -571,8 +571,8 @@ define(["jquery", "js/spec_helpers/create_sinon", "js/spec_helpers/view_helpers" ]) ); expect($(".outline-subsection .status-release-value")).not.toContainText("Jul 09, 2014 at 00:00 UTC"); - expect($(".outline-subsection .due-date")).not.toExist(); - expect($(".outline-subsection .policy")).not.toExist(); + expect($(".outline-subsection .status-grading-date")).not.toExist(); + expect($(".outline-subsection .status-grading-value")).not.toExist(); }); }); diff --git a/cms/templates/js/course-outline.underscore b/cms/templates/js/course-outline.underscore index 50294bb55c..ea2166880c 100644 --- a/cms/templates/js/course-outline.underscore +++ b/cms/templates/js/course-outline.underscore @@ -100,19 +100,20 @@ if (statusType === 'warning') { <%= xblockInfo.get('release_date') %> <% } %> - <% if (xblockInfo.get('due_date')) { %> - - - <%= gettext('Due date:') %> <%= xblockInfo.get('due_date') %> - - <% } %> - <% if (xblockInfo.get('graded')) { %> - - <%= gettext('Policy:') %> <%= xblockInfo.get('format') %> - - <% } %>
+ <% if (xblockInfo.get('due_date') || xblockInfo.get('graded')) { %> ++ <%= gettext('Graded as:') %> + + <%= xblockInfo.get('format') %> + <% if (xblockInfo.get('due_date')) { %> + <%= gettext('Due:') %> <%= xblockInfo.get('due_date') %> + <% } %> +
+