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
775c3cac
Commit
775c3cac
authored
Jan 12, 2016
by
Toby Lawrence
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11190 from edx/PERF-227
Disable Optimizely in the courseware view.
parents
ded3786d
09f2040c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
lms/djangoapps/courseware/views.py
+1
-0
lms/templates/widgets/optimizely.html
+1
-1
No files found.
lms/djangoapps/courseware/views.py
View file @
775c3cac
...
...
@@ -441,6 +441,7 @@ def _index_bulk_op(request, course_key, chapter, section, position):
'xqa_server'
:
settings
.
FEATURES
.
get
(
'XQA_SERVER'
,
"http://your_xqa_server.com"
),
'bookmarks_api_url'
:
bookmarks_api_url
,
'language_preference'
:
language_preference
,
'disable_optimizely'
:
True
,
}
now
=
datetime
.
now
(
UTC
())
...
...
lms/templates/widgets/optimizely.html
View file @
775c3cac
% if settings.OPTIMIZELY_PROJECT_ID:
% if settings.OPTIMIZELY_PROJECT_ID
and not disable_optimizely
:
<script
src=
${'//cdn.optimizely.com/js/{}.js'.format(settings.OPTIMIZELY_PROJECT_ID)}
></script>
% 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