From bddc29a85053618a4a33aa7ec4c0172fd6b7ad60 Mon Sep 17 00:00:00 2001 From: cahrens Date: Tue, 11 Jul 2017 16:19:44 -0400 Subject: [PATCH] Remove last Mustache usage. --- common/static/js/vendor/mustache.js | 613 ------------------ .../js/instructor_dashboard/membership.js | 4 +- .../instructor_dashboard_2.html | 3 +- .../membership-list-widget.underscore | 25 + .../instructor_dashboard_2/membership.html | 41 +- static/monitoring/package.txt | 1 - 6 files changed, 35 insertions(+), 652 deletions(-) delete mode 100644 common/static/js/vendor/mustache.js create mode 100644 lms/templates/instructor/instructor_dashboard_2/membership-list-widget.underscore diff --git a/common/static/js/vendor/mustache.js b/common/static/js/vendor/mustache.js deleted file mode 100644 index aab62f9ddc..0000000000 --- a/common/static/js/vendor/mustache.js +++ /dev/null @@ -1,613 +0,0 @@ -/*! - * mustache.js - Logic-less {{mustache}} templates with JavaScript - * http://github.com/janl/mustache.js - */ - -var Mustache; - -(function (exports) { - if (typeof module !== "undefined") { - module.exports = exports; // CommonJS - } else if (typeof define === "function") { - define(exports); // AMD - } else { - Mustache = exports; // - @@ -81,7 +80,7 @@ from openedx.core.djangolib.markup import HTML ## Include Underscore templates <%block name="header_extras"> -% for template_name in ["cohorts", "discussions", "enrollment-code-lookup-links", "cohort-editor", "cohort-group-header", "cohort-selector", "cohort-form", "notification", "cohort-state", "divided-discussions-inline", "divided-discussions-course-wide", "cohort-discussions-category", "cohort-discussions-subcategory", "certificate-white-list", "certificate-white-list-editor", "certificate-bulk-white-list", "certificate-invalidation"]: +% for template_name in ["cohorts", "discussions", "enrollment-code-lookup-links", "cohort-editor", "cohort-group-header", "cohort-selector", "cohort-form", "notification", "cohort-state", "divided-discussions-inline", "divided-discussions-course-wide", "cohort-discussions-category", "cohort-discussions-subcategory", "certificate-white-list", "certificate-white-list-editor", "certificate-bulk-white-list", "certificate-invalidation", "membership-list-widget"]: diff --git a/lms/templates/instructor/instructor_dashboard_2/membership-list-widget.underscore b/lms/templates/instructor/instructor_dashboard_2/membership-list-widget.underscore new file mode 100644 index 0000000000..b005779823 --- /dev/null +++ b/lms/templates/instructor/instructor_dashboard_2/membership-list-widget.underscore @@ -0,0 +1,25 @@ +
+
+
<%- title %>
+
+
<%- info %>
+
+ + + + <% _.each(labels, function(label) { %> + + <% }); %> + + + +
<%- label %>
+
+
+ + +
+
diff --git a/lms/templates/instructor/instructor_dashboard_2/membership.html b/lms/templates/instructor/instructor_dashboard_2/membership.html index 0795335e85..8870613640 100644 --- a/lms/templates/instructor/instructor_dashboard_2/membership.html +++ b/lms/templates/instructor/instructor_dashboard_2/membership.html @@ -1,36 +1,9 @@ +<%page args="section_data" expression_filter="h"/> <%namespace name='static' file='/static_content.html'/> -<%page args="section_data"/> <%! from django.utils.translation import ugettext as _ +from openedx.core.djangolib.markup import HTML, Text %> - -
${_("Batch Enrollment")}