Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
7a57e369
Commit
7a57e369
authored
12 years ago
by
Mark L. Chang
Browse files
Options
Downloads
Patches
Plain Diff
put survey behind MITX_FEATURES flag
parent
84a16f5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cms/envs/common.py
+1
-0
1 addition, 0 deletions
cms/envs/common.py
cms/envs/dev.py
+3
-0
3 additions, 0 deletions
cms/envs/dev.py
cms/templates/base.html
+2
-12
2 additions, 12 deletions
cms/templates/base.html
cms/templates/widgets/qualaroo.html
+13
-0
13 additions, 0 deletions
cms/templates/widgets/qualaroo.html
with
19 additions
and
12 deletions
cms/envs/common.py
+
1
−
0
View file @
7a57e369
...
...
@@ -34,6 +34,7 @@ MITX_FEATURES = {
'
ENABLE_DISCUSSION_SERVICE
'
:
False
,
'
AUTH_USE_MIT_CERTIFICATES
'
:
False
,
'
STUB_VIDEO_FOR_TESTING
'
:
False
,
# do not display video when running automated acceptance tests
'
STUDIO_NPS_SURVEY
'
:
True
,
}
ENABLE_JASMINE
=
False
...
...
This diff is collapsed.
Click to expand it.
cms/envs/dev.py
+
3
−
0
View file @
7a57e369
...
...
@@ -143,3 +143,6 @@ DEBUG_TOOLBAR_CONFIG = {
# To see stacktraces for MongoDB queries, set this to True.
# Stacktraces slow down page loads drastically (for pages with lots of queries).
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
# disable NPS survey in dev mode
MITX_FEATURES
[
'
STUDIO_NPS_SURVEY
'
]
=
False
This diff is collapsed.
Click to expand it.
cms/templates/base.html
+
2
−
12
View file @
7a57e369
...
...
@@ -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-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>
</head>
...
...
@@ -70,6 +58,8 @@
<
%
block
name=
"jsextra"
></
%
block>
</body>
<
%
include
file=
"widgets/qualaroo.html"
/>
</html>
This diff is collapsed.
Click to expand it.
cms/templates/widgets/qualaroo.html
0 → 100644
+
13
−
0
View file @
7a57e369
% 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment