Commit 3ff203d1 by Usman Khalid

Renamed setting ENABLE_STUDENT_SELF_ENROLLMENT to COURSES_ARE_BROWSABLE

parent d2cd8a6a
...@@ -103,8 +103,8 @@ MITX_FEATURES = { ...@@ -103,8 +103,8 @@ MITX_FEATURES = {
# with Shib. Feature was requested by Stanford's office of general counsel # with Shib. Feature was requested by Stanford's office of general counsel
'SHIB_DISABLE_TOS': False, 'SHIB_DISABLE_TOS': False,
# Can be turned off if all courses are invite-only. Effects views and templates. # Can be turned off if course lists need to be hidden. Effects views and templates.
'ENABLE_STUDENT_SELF_ENROLLMENT': True, 'COURSES_ARE_BROWSABLE': True,
# Enables ability to restrict enrollment in specific courses by the user account login method # Enables ability to restrict enrollment in specific courses by the user account login method
'RESTRICT_ENROLL_BY_REG_METHOD': False, 'RESTRICT_ENROLL_BY_REG_METHOD': False,
......
...@@ -332,7 +332,7 @@ ...@@ -332,7 +332,7 @@
</ul> </ul>
% else: % else:
<section class="empty-dashboard-message"> <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> <p>${_("Looks like you haven't registered for any courses yet.")}</p>
<a href="${marketing_link('COURSES')}"> <a href="${marketing_link('COURSES')}">
${_("Find courses now!")} ${_("Find courses now!")}
......
...@@ -165,15 +165,17 @@ ...@@ -165,15 +165,17 @@
</section> </section>
% endif % endif
<section class="courses"> % if settings.MITX_FEATURES.get('COURSES_ARE_BROWSABLE'):
<ul class="courses-listing"> <section class="courses">
%for course in courses: <ul class="courses-listing">
<li class="courses-listing-item"> %for course in courses:
<%include file="course.html" args="course=course" /> <li class="courses-listing-item">
</li> <%include file="course.html" args="course=course" />
%endfor </li>
</ul> %endfor
</section> </ul>
</section>
% endif
</section> </section>
</section> </section>
</section> </section>
......
...@@ -57,7 +57,7 @@ site_status_msg = get_site_status_msg(course_id) ...@@ -57,7 +57,7 @@ site_status_msg = get_site_status_msg(course_id)
<ol class="left nav-global authenticated"> <ol class="left nav-global authenticated">
<%block name="navigation_global_links_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"> <li class="nav-global-01">
<a href="${marketing_link('COURSES')}">${_('Find Courses')}</a> <a href="${marketing_link('COURSES')}">${_('Find Courses')}</a>
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment