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
ce769b36
Commit
ce769b36
authored
Feb 02, 2016
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert PARTNER_SUPPORT_EMAIL to a setting.
parent
b74e2d9e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
5 deletions
+11
-5
cms/envs/aws.py
+3
-0
cms/envs/bok_choy.py
+1
-1
cms/envs/common.py
+3
-0
cms/templates/widgets/sock.html
+2
-2
themes/edx.org/cms/templates/widgets/sock.html
+2
-2
No files found.
cms/envs/aws.py
View file @
ce769b36
...
...
@@ -387,3 +387,6 @@ OAUTH_OIDC_ISSUER = ENV_TOKENS['OAUTH_OIDC_ISSUER']
######################## CUSTOM COURSES for EDX CONNECTOR ######################
if
FEATURES
.
get
(
'CUSTOM_COURSES_EDX'
):
INSTALLED_APPS
+=
(
'openedx.core.djangoapps.ccxcon'
,)
# Partner support link for CMS footer
PARTNER_SUPPORT_EMAIL
=
ENV_TOKENS
.
get
(
'PARTNER_SUPPORT_EMAIL'
,
PARTNER_SUPPORT_EMAIL
)
cms/envs/bok_choy.py
View file @
ce769b36
...
...
@@ -94,7 +94,7 @@ FEATURES['ENABLE_MOBILE_REST_API'] = True # Enable video bumper in Studio
FEATURES
[
'ENABLE_VIDEO_BUMPER'
]
=
True
# Enable video bumper in Studio settings
# Enable partner support link in Studio footer
FEATURES
[
'PARTNER_SUPPORT_EMAIL'
]
=
'partner-support@example.com'
PARTNER_SUPPORT_EMAIL
=
'partner-support@example.com'
# Disable some block types to test block deprecation logic
DEPRECATED_BLOCK_TYPES
=
[
'poll'
,
'survey'
]
...
...
cms/envs/common.py
View file @
ce769b36
...
...
@@ -1110,3 +1110,6 @@ OAUTH_OIDC_ISSUER = 'https://www.example.com/oauth2'
# 5 minute expiration time for JWT id tokens issued for external API requests.
OAUTH_ID_TOKEN_EXPIRATION
=
5
*
60
# Partner support link for CMS footer
PARTNER_SUPPORT_EMAIL
=
''
cms/templates/widgets/sock.html
View file @
ce769b36
...
...
@@ -23,7 +23,7 @@ from django.core.urlresolvers import reverse
<
%!
from
django
.
conf
import
settings
partner_email =
settings.
FEATURES.get('PARTNER_SUPPORT_EMAIL',
'')
partner_email =
settings.
PARTNER_SUPPORT_EMAIL
links =
[{
'
href
'
:
'
http:
//
docs
.
edx
.
org
',
...
...
@@ -49,7 +49,7 @@ from django.core.urlresolvers import reverse
'
href
'
:
'
mailto:
{
email
}'.
format
(
email=
partner_email),
'
sr_mouseover_text
'
:
_
('
Send
an
email
to
{
email
}').
format
(
email=
partner_email),
'
text
'
:
_
('
Contact
Us
'),
'
condition
'
:
'
PARTNER_SUPPORT_EMAIL
'
in
settings
.
FEATURES
'
condition
'
:
bool
(
partner_email
)
}]
%
>
...
...
themes/edx.org/cms/templates/widgets/sock.html
View file @
ce769b36
...
...
@@ -23,7 +23,7 @@ from django.core.urlresolvers import reverse
<
%!
from
django
.
conf
import
settings
partner_email =
settings.
FEATURES.get('PARTNER_SUPPORT_EMAIL',
'')
partner_email =
settings.
PARTNER_SUPPORT_EMAIL
links =
[{
'
href
'
:
'
http:
//
docs
.
edx
.
org
',
...
...
@@ -49,7 +49,7 @@ from django.core.urlresolvers import reverse
'
href
'
:
'
mailto:
{
email
}'.
format
(
email=
partner_email),
'
sr_mouseover_text
'
:
_
('
Send
an
email
to
{
email
}').
format
(
email=
partner_email),
'
text
'
:
_
('
Contact
Us
'),
'
condition
'
:
'
PARTNER_SUPPORT_EMAIL
'
in
settings
.
FEATURES
'
condition
'
:
bool
(
partner_email
)
}]
%
>
...
...
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