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
3b42f70b
Commit
3b42f70b
authored
Aug 10, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add feature flag to disable login button (for systems which autologin)
parent
289f8110
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
lms/envs/common.py
+2
-0
lms/envs/dev_ike.py
+5
-0
lms/templates/navigation.html
+4
-0
No files found.
lms/envs/common.py
View file @
3b42f70b
...
...
@@ -55,6 +55,8 @@ MITX_FEATURES = {
'ENABLE_SQL_TRACKING_LOGS'
:
False
,
'ENABLE_LMS_MIGRATION'
:
False
,
'DISABLE_LOGIN_BUTTON'
:
False
,
# used in systems where login is automatic, eg MIT SSL
# extrernal access methods
'ACCESS_REQUIRE_STAFF_FOR_COURSE'
:
False
,
'AUTH_USE_OPENID'
:
False
,
...
...
lms/envs/dev_ike.py
View file @
3b42f70b
...
...
@@ -10,12 +10,17 @@ sessions. Assumes structure:
from
.common
import
*
from
.logsettings
import
get_logger_config
from
.dev
import
*
import
socket
WIKI_ENABLED
=
False
MITX_FEATURES
[
'ENABLE_TEXTBOOK'
]
=
False
MITX_FEATURES
[
'ENABLE_DISCUSSION'
]
=
False
MITX_FEATURES
[
'ACCESS_REQUIRE_STAFF_FOR_COURSE'
]
=
True
# require that user be in the staff_* group to be able to enroll
myhost
=
socket
.
gethostname
()
if
(
'edxvm'
in
myhost
)
or
(
'ocw'
in
myhost
):
MITX_FEATURES
[
'DISABLE_LOGIN_BUTTON'
]
=
True
# auto-login with MIT certificate
#-----------------------------------------------------------------------------
# disable django debug toolbars
...
...
lms/templates/navigation.html
View file @
3b42f70b
...
...
@@ -42,11 +42,15 @@
<a
href=
"${reverse('about_edx')}"
>
About
</a>
<a
href=
"http://edxonline.tumblr.com/"
>
Blog
</a>
<a
href=
"${reverse('jobs')}"
>
Jobs
</a>
% if not settings.MITX_FEATURES['DISABLE_LOGIN_BUTTON']:
<a
href=
"#login-modal"
id=
"login"
rel=
"leanModal"
>
Log In
</a>
% endif
</li>
% if not settings.MITX_FEATURES['DISABLE_LOGIN_BUTTON']:
<li
class=
"primary"
>
<a
href=
"#signup-modal"
id=
"signup"
rel=
"leanModal"
>
Sign Up
</a>
</li>
% endif
</ol>
</nav>
%endif
...
...
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