Adds HIDE_DASHBOARD_COURSES_UNTIL_ACTIVATED
Site Configuration and feature flag
When set, it hides the Courses list on the Learner Dashboard page if the
learner has not yet activated their account.
(cherry picked from commit 22ee400b15)
This commit is contained in:
@@ -133,6 +133,9 @@ FEATURES = {
|
||||
# Can be turned off if course lists need to be hidden. Effects views and templates.
|
||||
'COURSES_ARE_BROWSABLE': True,
|
||||
|
||||
# Set to hide the courses list on the Learner Dashboard if they are not enrolled in any courses yet.
|
||||
'HIDE_DASHBOARD_COURSES_UNTIL_ACTIVATED': False,
|
||||
|
||||
# Enables ability to restrict enrollment in specific courses by the user account login method
|
||||
'RESTRICT_ENROLL_BY_REG_METHOD': False,
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ from student.models import CourseEnrollment
|
||||
|
||||
<main id="main" aria-label="Content" tabindex="-1">
|
||||
<div class="dashboard" id="dashboard-main">
|
||||
|
||||
% if display_dashboard_courses:
|
||||
<div class="main-container">
|
||||
<div class="my-courses" id="my-courses">
|
||||
<%include file="learner_dashboard/_dashboard_navigation_courses.html"/>
|
||||
@@ -224,6 +224,7 @@ from student.models import CourseEnrollment
|
||||
% endif
|
||||
</div>
|
||||
</div>
|
||||
% endif
|
||||
<div class="side-container">
|
||||
%if sidebar_account_activation_message:
|
||||
<div class="sidebar-notification">
|
||||
|
||||
Reference in New Issue
Block a user