From 5aeb412bbefd409dc7131139250f038e7b48f359 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Thu, 20 Nov 2014 22:08:53 -0500 Subject: [PATCH] Remove deprecated cohorts management on legacy dashboard --- lms/djangoapps/instructor/views/legacy.py | 1 - .../course_groups/cohort_management.html | 42 ------------------- lms/templates/course_groups/debug.html | 18 -------- .../legacy_instructor_dashboard.html | 2 +- 4 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 lms/templates/course_groups/cohort_management.html delete mode 100644 lms/templates/course_groups/debug.html diff --git a/lms/djangoapps/instructor/views/legacy.py b/lms/djangoapps/instructor/views/legacy.py index 171d910742..71ab0108f2 100644 --- a/lms/djangoapps/instructor/views/legacy.py +++ b/lms/djangoapps/instructor/views/legacy.py @@ -541,7 +541,6 @@ def instructor_dashboard(request, course_id): 'course_errors': modulestore().get_course_errors(course.id), 'instructor_tasks': instructor_tasks, 'offline_grade_log': offline_grades_available(course_key), - 'cohorts_ajax_url': reverse('cohorts', kwargs={'course_key_string': course_key.to_deprecated_string()}), 'analytics_results': analytics_results, 'disable_buttons': disable_buttons, diff --git a/lms/templates/course_groups/cohort_management.html b/lms/templates/course_groups/cohort_management.html deleted file mode 100644 index 4c9ca9e5a2..0000000000 --- a/lms/templates/course_groups/cohort_management.html +++ /dev/null @@ -1,42 +0,0 @@ -<%! from django.utils.translation import ugettext as _ %> -
-

${_("Cohort groups")}

- - - - - - - - - - -
diff --git a/lms/templates/course_groups/debug.html b/lms/templates/course_groups/debug.html deleted file mode 100644 index a70d4151ee..0000000000 --- a/lms/templates/course_groups/debug.html +++ /dev/null @@ -1,18 +0,0 @@ - -<%! from django.utils.translation import ugettext as _ %> - - - ## "edX" should not be translated - <%block name="pagetitle"> - - - - - - - -<%include file="/course_groups/cohort_management.html" /> - - - - diff --git a/lms/templates/courseware/legacy_instructor_dashboard.html b/lms/templates/courseware/legacy_instructor_dashboard.html index 848c3a9e22..87758293a1 100644 --- a/lms/templates/courseware/legacy_instructor_dashboard.html +++ b/lms/templates/courseware/legacy_instructor_dashboard.html @@ -389,7 +389,7 @@ function goto( mode)

${_("To manage beta tester roles, please visit the 'Membership' section of the instructor dashboard.")}

%if course.is_cohorted: - <%include file="/course_groups/cohort_management.html" /> +

${_("To manage course cohorts, please visit the 'Membership' section of the instructor dashboard.")}

%endif %endif