Commit d2cd8a6a by Usman Khalid

Added setting to disable find courses links

parent c65e21c7
...@@ -103,6 +103,9 @@ MITX_FEATURES = { ...@@ -103,6 +103,9 @@ 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.
'ENABLE_STUDENT_SELF_ENROLLMENT': 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,10 +332,14 @@ ...@@ -332,10 +332,14 @@
</ul> </ul>
% else: % else:
<section class="empty-dashboard-message"> <section class="empty-dashboard-message">
<p>${_("Looks like you haven't registered for any courses yet.")}</p> % if settings.MITX_FEATURES.get('ENABLE_STUDENT_SELF_ENROLLMENT'):
<a href="${marketing_link('COURSES')}"> <p>${_("Looks like you haven't registered for any courses yet.")}</p>
<a href="${marketing_link('COURSES')}">
${_("Find courses now!")} ${_("Find courses now!")}
</a> </a>
% else:
<p>${_("Looks like you haven't joined any courses yet.")}</p>
%endif
</section> </section>
% endif % endif
......
...@@ -57,9 +57,11 @@ site_status_msg = get_site_status_msg(course_id) ...@@ -57,9 +57,11 @@ 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">
<li class="nav-global-01"> % if settings.MITX_FEATURES.get('ENABLE_STUDENT_SELF_ENROLLMENT'):
<a href="${marketing_link('COURSES')}">${_('Find Courses')}</a> <li class="nav-global-01">
</li> <a href="${marketing_link('COURSES')}">${_('Find Courses')}</a>
</li>
% endif
</%block> </%block>
</ol> </ol>
<ol class="user"> <ol class="user">
......
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