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
3fc78828
Unverified
Commit
3fc78828
authored
Dec 08, 2017
by
Waheed Ahmed
Committed by
GitHub
Dec 08, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16823 from edx/waheed/LEARNER-2731-implement-journeys-app-banner
Implement journeys app banner.
parents
979c7cd1
3ed08e3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
lms/envs/aws.py
+3
-0
lms/envs/common.py
+3
-0
lms/templates/main.html
+8
-0
No files found.
lms/envs/aws.py
View file @
3fc78828
...
@@ -741,6 +741,9 @@ ADVANCED_SECURITY_CONFIG = ENV_TOKENS.get('ADVANCED_SECURITY_CONFIG', {})
...
@@ -741,6 +741,9 @@ ADVANCED_SECURITY_CONFIG = ENV_TOKENS.get('ADVANCED_SECURITY_CONFIG', {})
GOOGLE_ANALYTICS_ACCOUNT
=
AUTH_TOKENS
.
get
(
'GOOGLE_ANALYTICS_ACCOUNT'
)
GOOGLE_ANALYTICS_ACCOUNT
=
AUTH_TOKENS
.
get
(
'GOOGLE_ANALYTICS_ACCOUNT'
)
GOOGLE_ANALYTICS_LINKEDIN
=
AUTH_TOKENS
.
get
(
'GOOGLE_ANALYTICS_LINKEDIN'
)
GOOGLE_ANALYTICS_LINKEDIN
=
AUTH_TOKENS
.
get
(
'GOOGLE_ANALYTICS_LINKEDIN'
)
##### BRANCH.IO KEY #####
BRANCH_IO_KEY
=
AUTH_TOKENS
.
get
(
'BRANCH_IO_KEY'
)
##### OPTIMIZELY PROJECT ID #####
##### OPTIMIZELY PROJECT ID #####
OPTIMIZELY_PROJECT_ID
=
AUTH_TOKENS
.
get
(
'OPTIMIZELY_PROJECT_ID'
,
OPTIMIZELY_PROJECT_ID
)
OPTIMIZELY_PROJECT_ID
=
AUTH_TOKENS
.
get
(
'OPTIMIZELY_PROJECT_ID'
,
OPTIMIZELY_PROJECT_ID
)
...
...
lms/envs/common.py
View file @
3fc78828
...
@@ -810,6 +810,9 @@ TRACKING_SEGMENTIO_SOURCE_MAP = {
...
@@ -810,6 +810,9 @@ TRACKING_SEGMENTIO_SOURCE_MAP = {
GOOGLE_ANALYTICS_ACCOUNT
=
None
GOOGLE_ANALYTICS_ACCOUNT
=
None
GOOGLE_ANALYTICS_LINKEDIN
=
'GOOGLE_ANALYTICS_LINKEDIN_DUMMY'
GOOGLE_ANALYTICS_LINKEDIN
=
'GOOGLE_ANALYTICS_LINKEDIN_DUMMY'
######################## BRANCH.IO ###########################
BRANCH_IO_KEY
=
None
######################## OPTIMIZELY ###########################
######################## OPTIMIZELY ###########################
OPTIMIZELY_PROJECT_ID
=
None
OPTIMIZELY_PROJECT_ID
=
None
...
...
lms/templates/main.html
View file @
3fc78828
...
@@ -137,6 +137,14 @@ from pipeline_mako import render_require_js_path_overrides
...
@@ -137,6 +137,14 @@ from pipeline_mako import render_require_js_path_overrides
</script>
</script>
% endif
% endif
<
%
branch_key =
static.get_value("BRANCH_IO_KEY",
settings
.
BRANCH_IO_KEY
)
%
>
% if branch_key:
<script
type=
"text/javascript"
>
(
function
(
b
,
r
,
a
,
n
,
c
,
h
,
_
,
s
,
d
,
k
){
if
(
!
b
[
n
]
||!
b
[
n
].
_q
){
for
(;
s
<
_
.
length
;)
c
(
h
,
_
[
s
++
]);
d
=
r
.
createElement
(
a
);
d
.
async
=
1
;
d
.
src
=
"https://cdn.branch.io/branch-latest.min.js"
;
k
=
r
.
getElementsByTagName
(
a
)[
0
];
k
.
parentNode
.
insertBefore
(
d
,
k
);
b
[
n
]
=
h
}})(
window
,
document
,
"script"
,
"branch"
,
function
(
b
,
r
){
b
[
r
]
=
function
(){
b
.
_q
.
push
([
r
,
arguments
])}},{
_q
:[],
_v
:
1
},
"addListener applyCode banner closeBanner creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode"
.
split
(
" "
),
0
);
branch
.
init
(
'${branch_key | n, js_escaped_string}'
);
</script>
% endif
</head>
</head>
<body
class=
"${static.dir_rtl()} <%block name='bodyclass'/> lang_${LANGUAGE_CODE}"
>
<body
class=
"${static.dir_rtl()} <%block name='bodyclass'/> lang_${LANGUAGE_CODE}"
>
...
...
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