Renamed setting ENABLE_STUDENT_SELF_ENROLLMENT to COURSES_ARE_BROWSABLE
This commit is contained in:
@@ -103,8 +103,8 @@ MITX_FEATURES = {
|
||||
# with Shib. Feature was requested by Stanford's office of general counsel
|
||||
'SHIB_DISABLE_TOS': False,
|
||||
|
||||
# Can be turned off if all courses are invite-only. Effects views and templates.
|
||||
'ENABLE_STUDENT_SELF_ENROLLMENT': True,
|
||||
# Can be turned off if course lists need to be hidden. Effects views and templates.
|
||||
'COURSES_ARE_BROWSABLE': True,
|
||||
|
||||
# Enables ability to restrict enrollment in specific courses by the user account login method
|
||||
'RESTRICT_ENROLL_BY_REG_METHOD': False,
|
||||
|
||||
@@ -332,7 +332,7 @@
|
||||
</ul>
|
||||
% else:
|
||||
<section class="empty-dashboard-message">
|
||||
% if settings.MITX_FEATURES.get('ENABLE_STUDENT_SELF_ENROLLMENT'):
|
||||
% if settings.MITX_FEATURES.get('COURSES_ARE_BROWSABLE'):
|
||||
<p>${_("Looks like you haven't registered for any courses yet.")}</p>
|
||||
<a href="${marketing_link('COURSES')}">
|
||||
${_("Find courses now!")}
|
||||
|
||||
@@ -165,15 +165,17 @@
|
||||
</section>
|
||||
% endif
|
||||
|
||||
<section class="courses">
|
||||
<ul class="courses-listing">
|
||||
%for course in courses:
|
||||
<li class="courses-listing-item">
|
||||
<%include file="course.html" args="course=course" />
|
||||
</li>
|
||||
%endfor
|
||||
</ul>
|
||||
</section>
|
||||
% if settings.MITX_FEATURES.get('COURSES_ARE_BROWSABLE'):
|
||||
<section class="courses">
|
||||
<ul class="courses-listing">
|
||||
%for course in courses:
|
||||
<li class="courses-listing-item">
|
||||
<%include file="course.html" args="course=course" />
|
||||
</li>
|
||||
%endfor
|
||||
</ul>
|
||||
</section>
|
||||
% endif
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -57,7 +57,7 @@ site_status_msg = get_site_status_msg(course_id)
|
||||
|
||||
<ol class="left nav-global authenticated">
|
||||
<%block name="navigation_global_links_authenticated">
|
||||
% if settings.MITX_FEATURES.get('ENABLE_STUDENT_SELF_ENROLLMENT'):
|
||||
% if settings.MITX_FEATURES.get('COURSES_ARE_BROWSABLE'):
|
||||
<li class="nav-global-01">
|
||||
<a href="${marketing_link('COURSES')}">${_('Find Courses')}</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user