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
3ff203d1
Commit
3ff203d1
authored
Sep 23, 2013
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed setting ENABLE_STUDENT_SELF_ENROLLMENT to COURSES_ARE_BROWSABLE
parent
d2cd8a6a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
lms/envs/common.py
+2
-2
lms/templates/dashboard.html
+1
-1
lms/templates/index.html
+11
-9
lms/templates/navigation.html
+1
-1
No files found.
lms/envs/common.py
View file @
3ff203d1
...
...
@@ -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
,
...
...
lms/templates/dashboard.html
View file @
3ff203d1
...
...
@@ -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!")}
...
...
lms/templates/index.html
View file @
3ff203d1
...
...
@@ -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>
...
...
lms/templates/navigation.html
View file @
3ff203d1
...
...
@@ -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>
...
...
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