Disable Legacy Dash by default
This commit is contained in:
@@ -180,7 +180,6 @@ def instructor_dashboard_2(request, course_id):
|
||||
|
||||
context = {
|
||||
'course': course,
|
||||
'old_dashboard_url': reverse('instructor_dashboard_legacy', kwargs={'course_id': unicode(course_key)}),
|
||||
'studio_url': get_studio_url(course, 'course'),
|
||||
'sections': sections,
|
||||
'disable_buttons': disable_buttons,
|
||||
@@ -190,6 +189,9 @@ def instructor_dashboard_2(request, course_id):
|
||||
'generate_bulk_certificate_exceptions_url': generate_bulk_certificate_exceptions_url,
|
||||
'certificate_exception_view_url': certificate_exception_view_url
|
||||
}
|
||||
if settings.FEATURES['ENABLE_INSTRUCTOR_LEGACY_DASHBOARD']:
|
||||
context['old_dashboard_url'] = reverse('instructor_dashboard_legacy', kwargs={'course_id': unicode(course_key)})
|
||||
|
||||
return render_to_response('instructor/instructor_dashboard_2/instructor_dashboard_2.html', context)
|
||||
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ FEATURES = {
|
||||
'CUSTOM_COURSES_EDX': False,
|
||||
|
||||
# Enable legacy instructor dashboard
|
||||
'ENABLE_INSTRUCTOR_LEGACY_DASHBOARD': True,
|
||||
'ENABLE_INSTRUCTOR_LEGACY_DASHBOARD': False,
|
||||
|
||||
# Is this an edX-owned domain? (used for edX specific messaging and images)
|
||||
'IS_EDX_DOMAIN': False,
|
||||
|
||||
@@ -28,7 +28,7 @@ FEATURES['ENABLE_SERVICE_STATUS'] = True
|
||||
FEATURES['ENABLE_INSTRUCTOR_EMAIL'] = True # Enable email for all Studio courses
|
||||
FEATURES['REQUIRE_COURSE_EMAIL_AUTH'] = False # Give all courses email (don't require django-admin perms)
|
||||
FEATURES['ENABLE_HINTER_INSTRUCTOR_VIEW'] = True
|
||||
FEATURES['ENABLE_INSTRUCTOR_LEGACY_DASHBOARD'] = True
|
||||
FEATURES['ENABLE_INSTRUCTOR_LEGACY_DASHBOARD'] = False
|
||||
FEATURES['MULTIPLE_ENROLLMENT_ROLES'] = True
|
||||
FEATURES['ENABLE_SHOPPING_CART'] = True
|
||||
FEATURES['AUTOMATIC_VERIFY_STUDENT_IDENTITY_FOR_TESTING'] = True
|
||||
|
||||
Reference in New Issue
Block a user