Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d2cd8a6a
Commit
d2cd8a6a
authored
Sep 20, 2013
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added setting to disable find courses links
parent
c65e21c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
lms/envs/common.py
+3
-0
lms/templates/dashboard.html
+7
-3
lms/templates/navigation.html
+5
-3
No files found.
lms/envs/common.py
View file @
d2cd8a6a
...
@@ -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
,
...
...
lms/templates/dashboard.html
View file @
d2cd8a6a
...
@@ -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
...
...
lms/templates/navigation.html
View file @
d2cd8a6a
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment