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
33d4ae69
Commit
33d4ae69
authored
Jul 29, 2013
by
jsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add feature flag to enable/disable discussion home panel
parent
4afa5481
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
lms/envs/aws.py
+3
-0
lms/envs/common.py
+3
-0
lms/templates/discussion/_underscore_templates.html
+4
-0
No files found.
lms/envs/aws.py
View file @
33d4ae69
...
...
@@ -182,6 +182,9 @@ COURSES_WITH_UNSAFE_CODE = ENV_TOKENS.get("COURSES_WITH_UNSAFE_CODE", [])
MITX_FEATURES
[
'AUTOMATIC_AUTH_FOR_LOAD_TESTING'
]
=
ENV_TOKENS
.
get
(
'AUTOMATIC_AUTH_FOR_LOAD_TESTING'
)
MITX_FEATURES
[
'MAX_AUTO_AUTH_USERS'
]
=
ENV_TOKENS
.
get
(
'MAX_AUTO_AUTH_USERS'
)
# discussion home panel must be explicitly enabled
MITX_FEATURES
[
'ENABLE_DISCUSSION_HOME_PANEL'
]
=
ENV_TOKENS
.
get
(
'ENABLE_DISCUSSION_HOME_PANEL'
,
False
)
############################## SECURE AUTH ITEMS ###############
# Secret things: passwords, access keys, etc.
...
...
lms/envs/common.py
View file @
33d4ae69
...
...
@@ -71,6 +71,9 @@ MITX_FEATURES = {
'ENABLE_TEXTBOOK'
:
True
,
'ENABLE_DISCUSSION_SERVICE'
:
True
,
# discussion home panel, which includes a subscription on/off setting for discussion digest emails.
# this glano longer needed once
'ENABLE_DISCUSSION_HOME_PANEL'
:
True
,
'ENABLE_PSYCHOMETRICS'
:
False
,
# real-time psychometrics (eg item response theory analysis in instructor dashboard)
...
...
lms/templates/discussion/_underscore_templates.html
View file @
33d4ae69
...
...
@@ -177,6 +177,8 @@
<
span
class
=
"label"
>
DISCUSSION
HOME
:
<
/span
>
<
h1
class
=
"home-title"
>
$
{
course
.
display_name_with_default
}
<
/h1
>
<
/section
>
%
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_DISCUSSION_HOME_PANEL'
):
<
span
class
=
"label label-settings"
>
HOW
TO
USE
EDX
DISCUSSIONS
<
/span
>
<
table
class
=
"home-helpgrid"
>
<
tr
class
=
"helpgrid-row helpgrid-row-navigation"
>
...
...
@@ -218,5 +220,7 @@
<
/td
>
<
/tr
>
<
/table
>
%
endif
<
/div>
</script>
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