Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d2cd8a6a
Commit
d2cd8a6a
authored
11 years ago
by
Usman Khalid
Browse files
Options
Downloads
Patches
Plain Diff
Added setting to disable find courses links
parent
c65e21c7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lms/envs/common.py
+3
-0
3 additions, 0 deletions
lms/envs/common.py
lms/templates/dashboard.html
+7
-3
7 additions, 3 deletions
lms/templates/dashboard.html
lms/templates/navigation.html
+5
-3
5 additions, 3 deletions
lms/templates/navigation.html
with
15 additions
and
6 deletions
lms/envs/common.py
+
3
−
0
View file @
d2cd8a6a
...
...
@@ -103,6 +103,9 @@ 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
,
# Enables ability to restrict enrollment in specific courses by the user account login method
'
RESTRICT_ENROLL_BY_REG_METHOD
'
:
False
,
...
...
This diff is collapsed.
Click to expand it.
lms/templates/dashboard.html
+
7
−
3
View file @
d2cd8a6a
...
...
@@ -332,10 +332,14 @@
</ul>
% else:
<section
class=
"empty-dashboard-message"
>
<p>
${_("Looks like you haven't registered for any courses yet.")}
</p>
<a
href=
"${marketing_link('COURSES')}"
>
% if settings.MITX_FEATURES.get('ENABLE_STUDENT_SELF_ENROLLMENT'):
<p>
${_("Looks like you haven't registered for any courses yet.")}
</p>
<a
href=
"${marketing_link('COURSES')}"
>
${_("Find courses now!")}
</a>
</a>
% else:
<p>
${_("Looks like you haven't joined any courses yet.")}
</p>
%endif
</section>
% endif
...
...
This diff is collapsed.
Click to expand it.
lms/templates/navigation.html
+
5
−
3
View file @
d2cd8a6a
...
...
@@ -57,9 +57,11 @@ site_status_msg = get_site_status_msg(course_id)
<ol
class=
"left nav-global authenticated"
>
<
%
block
name=
"navigation_global_links_authenticated"
>
<li
class=
"nav-global-01"
>
<a
href=
"${marketing_link('COURSES')}"
>
${_('Find Courses')}
</a>
</li>
% if settings.MITX_FEATURES.get('ENABLE_STUDENT_SELF_ENROLLMENT'):
<li
class=
"nav-global-01"
>
<a
href=
"${marketing_link('COURSES')}"
>
${_('Find Courses')}
</a>
</li>
% endif
</
%
block>
</ol>
<ol
class=
"user"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment