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
43f6f0ce
Commit
43f6f0ce
authored
Apr 03, 2013
by
Mark L. Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put survey behind MITX_FEATURES flag
parent
5df7f41c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
12 deletions
+19
-12
cms/envs/common.py
+1
-0
cms/envs/dev.py
+3
-0
cms/templates/base.html
+2
-12
cms/templates/widgets/qualaroo.html
+13
-0
No files found.
cms/envs/common.py
View file @
43f6f0ce
...
@@ -34,6 +34,7 @@ MITX_FEATURES = {
...
@@ -34,6 +34,7 @@ MITX_FEATURES = {
'ENABLE_DISCUSSION_SERVICE'
:
False
,
'ENABLE_DISCUSSION_SERVICE'
:
False
,
'AUTH_USE_MIT_CERTIFICATES'
:
False
,
'AUTH_USE_MIT_CERTIFICATES'
:
False
,
'STUB_VIDEO_FOR_TESTING'
:
False
,
# do not display video when running automated acceptance tests
'STUB_VIDEO_FOR_TESTING'
:
False
,
# do not display video when running automated acceptance tests
'STUDIO_NPS_SURVEY'
:
True
,
}
}
ENABLE_JASMINE
=
False
ENABLE_JASMINE
=
False
...
...
cms/envs/dev.py
View file @
43f6f0ce
...
@@ -143,3 +143,6 @@ DEBUG_TOOLBAR_CONFIG = {
...
@@ -143,3 +143,6 @@ DEBUG_TOOLBAR_CONFIG = {
# To see stacktraces for MongoDB queries, set this to True.
# To see stacktraces for MongoDB queries, set this to True.
# Stacktraces slow down page loads drastically (for pages with lots of queries).
# Stacktraces slow down page loads drastically (for pages with lots of queries).
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
# disable NPS survey in dev mode
MITX_FEATURES
[
'STUDIO_NPS_SURVEY'
]
=
False
cms/templates/base.html
View file @
43f6f0ce
...
@@ -23,18 +23,6 @@
...
@@ -23,18 +23,6 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('css/vendor/symbolset.ss-symbolicons-block.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('css/vendor/symbolset.ss-symbolicons-block.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('css/vendor/symbolset.ss-standard.css')}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${static.url('css/vendor/symbolset.ss-standard.css')}"
/>
<!-- start Qualaroo -->
<script
type=
"text/javascript"
>
%
if
user
.
is_authenticated
():
var
_kiq
=
_kiq
||
[];
_kiq
.
push
([
'identify'
,
"${ user.email }"
]);
%
endif
</script>
<!-- Qualaroo for edx.org -->
<script
type=
"text/javascript"
src=
"//s3.amazonaws.com/ki.js/48221/9SN.js"
async=
"true"
></script>
<!-- end Qualaroo -->
<
%
block
name=
"header_extras"
></
%
block>
<
%
block
name=
"header_extras"
></
%
block>
</head>
</head>
...
@@ -70,6 +58,8 @@
...
@@ -70,6 +58,8 @@
<
%
block
name=
"jsextra"
></
%
block>
<
%
block
name=
"jsextra"
></
%
block>
</body>
</body>
<
%
include
file=
"widgets/qualaroo.html"
/>
</html>
</html>
cms/templates/widgets/qualaroo.html
0 → 100644
View file @
43f6f0ce
% if settings.MITX_FEATURES.get('STUDIO_NPS_SURVEY'):
<!-- Qualaroo is used for net promoter score surveys -->
<script
type=
"text/javascript"
>
%
if
user
.
is_authenticated
():
var
_kiq
=
_kiq
||
[];
_kiq
.
push
([
'identify'
,
"${ user.email }"
]);
%
endif
</script>
<!-- Qualaroo for edx.org -->
<script
type=
"text/javascript"
src=
"//s3.amazonaws.com/ki.js/48221/9SN.js"
async=
"true"
></script>
<!-- end Qualaroo -->
% 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