+ ${_("Note: some of these buttons are known to time out for larger "
+ "courses. We have temporarily disabled those features for courses "
+ "with more than {max_enrollment} students. We are urgently working on "
+ "fixing this issue. Thank you for your patience as we continue "
+ "working to improve the platform!").format(
+ max_enrollment=settings.MITX_FEATURES['MAX_ENROLLMENT_INSTR_BUTTONS']
+ )}
+
@@ -369,9 +384,22 @@ function goto( mode)
%if modeflag.get('Enrollment'):
-
-
-
+
${_("Enrollment Data")}
+ % if disable_buttons:
+
+ ${_("Note: some of these buttons are known to time out for larger "
+ "courses. We have temporarily disabled those features for courses "
+ "with more than {max_enrollment} students. We are urgently working on "
+ "fixing this issue. Thank you for your patience as we continue "
+ "working to improve the platform!").format(
+ max_enrollment=settings.MITX_FEATURES['MAX_ENROLLMENT_INSTR_BUTTONS']
+ )}
+
${_("Enroll or un-enroll one or many students: enter emails, separated by new lines or commas;")}
diff --git a/lms/templates/instructor/instructor_dashboard_2/data_download.html b/lms/templates/instructor/instructor_dashboard_2/data_download.html
index c9f15bdca4..74c98e7dbc 100644
--- a/lms/templates/instructor/instructor_dashboard_2/data_download.html
+++ b/lms/templates/instructor/instructor_dashboard_2/data_download.html
@@ -1,8 +1,23 @@
<%! from django.utils.translation import ugettext as _ %>
<%page args="section_data"/>
-
-
+
+
${_("Data Download")}
+% if disable_buttons:
+
+ ${_("Note: some of these buttons are known to time out for larger "
+ "courses. We have temporarily disabled those features for courses "
+ "with more than {max_enrollment} students. We are urgently working on "
+ "fixing this issue. Thank you for your patience as we continue "
+ "working to improve the platform!").format(
+ max_enrollment=settings.MITX_FEATURES['MAX_ENROLLMENT_INSTR_BUTTONS']
+ )}
+
- ${_("Note: some of these buttons are known to time out for larger "
- "courses. We have temporarily disabled those features for courses "
- "with more than {max_enrollment} students. We are urgently working on "
- "fixing this issue. Thank you for your patience as we continue "
- "working to improve the platform!").format(
- max_enrollment=settings.MITX_FEATURES['MAX_ENROLLMENT_INSTR_BUTTONS']
- )}
-
+
+
+
+
+
+ ${_("Note: some of these buttons are known to time out for larger "
+ "courses. We have temporarily disabled those features for courses "
+ "with more than {max_enrollment} students. We are urgently working on "
+ "fixing this issue. Thank you for your patience as we continue "
+ "working to improve the platform!").format(
+ max_enrollment=settings.MITX_FEATURES['MAX_ENROLLMENT_INSTR_BUTTONS']
+ )}
+
+
+
% endif
@@ -203,7 +212,7 @@ function goto( mode)
${_("The assignments defined for this course should match the ones stored in the gradebook, for this to work properly!")}
- ${_("Note: some of these buttons are known to time out for larger "
- "courses. We have temporarily disabled those features for courses "
- "with more than {max_enrollment} students. We are urgently working on "
- "fixing this issue. Thank you for your patience as we continue "
- "working to improve the platform!").format(
- max_enrollment=settings.MITX_FEATURES['MAX_ENROLLMENT_INSTR_BUTTONS']
- )}
-
-
+
+
+
+
+ ${_("Note: some of these buttons are known to time out for larger "
+ "courses. We have temporarily disabled those features for courses "
+ "with more than {max_enrollment} students. We are urgently working on "
+ "fixing this issue. Thank you for your patience as we continue "
+ "working to improve the platform!").format(
+ max_enrollment=settings.MITX_FEATURES['MAX_ENROLLMENT_INSTR_BUTTONS']
+ )}
+
${_("Note: some of these buttons are known to time out for larger "
"courses. We have temporarily disabled those features for courses "
"with more than {max_enrollment} students. We are urgently working on "
@@ -12,7 +14,9 @@
"working to improve the platform!").format(
max_enrollment=settings.MITX_FEATURES['MAX_ENROLLMENT_INSTR_BUTTONS']
)}
-
+
+
+
% endif
From e37584619b5d802b727202c0d82c72d70890f18e Mon Sep 17 00:00:00 2001
From: Adam Palay
Date: Thu, 3 Oct 2013 12:59:06 -0400
Subject: [PATCH 3/3] add entry to changelog
---
CHANGELOG.rst | 1 +
1 file changed, 1 insertion(+)
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 1a7454e1ec..da918fec42 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,6 +5,7 @@ These are notable changes in edx-platform. This is a rolling list of changes,
in roughly chronological order, most recent first. Add your entries at or near
the top. Include a label indicating the component affected.
+LMS: Disable data download buttons on the instructor dashboard for large courses
LMS: Refactor and clean student dashboard templates.