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
22952af6
Commit
22952af6
authored
Nov 03, 2014
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5782 from edx/remove-analytics-demographics
Updates to Demographics Display
parents
09c1f524
13579ca9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
17 deletions
+32
-17
lms/djangoapps/instructor/views/instructor_dashboard.py
+8
-0
lms/envs/common.py
+3
-0
lms/templates/instructor/instructor_dashboard_2/instructor_analytics.html
+21
-17
No files found.
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
22952af6
...
@@ -365,6 +365,14 @@ def _section_analytics(course, access):
...
@@ -365,6 +365,14 @@ def _section_analytics(course, access):
'proxy_legacy_analytics_url'
:
reverse
(
'proxy_legacy_analytics'
,
kwargs
=
{
'course_id'
:
course_key
.
to_deprecated_string
()}),
'proxy_legacy_analytics_url'
:
reverse
(
'proxy_legacy_analytics'
,
kwargs
=
{
'course_id'
:
course_key
.
to_deprecated_string
()}),
}
}
if
settings
.
ANALYTICS_DASHBOARD_URL
:
# Construct a URL to the external analytics dashboard
analytics_dashboard_url
=
'{0}/courses/{1}'
.
format
(
settings
.
ANALYTICS_DASHBOARD_URL
,
unicode
(
course_key
))
dashboard_link
=
"<a href=
\"
{0}
\"
target=
\"
_blank
\"
>{1}</a>"
.
format
(
analytics_dashboard_url
,
settings
.
ANALYTICS_DASHBOARD_NAME
)
message
=
_
(
"Demographic data is now available in {dashboard_link}."
)
.
format
(
dashboard_link
=
dashboard_link
)
section_data
[
'demographic_message'
]
=
message
return
section_data
return
section_data
...
...
lms/envs/common.py
View file @
22952af6
...
@@ -284,6 +284,9 @@ FEATURES = {
...
@@ -284,6 +284,9 @@ FEATURES = {
# to allow an upload of a CSV file that contains a list of new accounts to create
# to allow an upload of a CSV file that contains a list of new accounts to create
# and register for course.
# and register for course.
'ALLOW_AUTOMATED_SIGNUPS'
:
False
,
'ALLOW_AUTOMATED_SIGNUPS'
:
False
,
# Display demographic data on the analytics tab in the instructor dashboard.
'DISPLAY_ANALYTICS_DEMOGRAPHICS'
:
True
}
}
# Ignore static asset files on import which match this pattern
# Ignore static asset files on import which match this pattern
...
...
lms/templates/instructor/instructor_dashboard_2/instructor_analytics.html
View file @
22952af6
...
@@ -44,24 +44,28 @@
...
@@ -44,24 +44,28 @@
<hr>
<hr>
%endif
%endif
<div
class=
"profile-distribution-widget-container"
%if settings.FEATURES['DISPLAY_ANALYTICS_DEMOGRAPHICS']:
data-title=
"${_("
Year
of
Birth
")}"
<div
class=
"profile-distribution-widget-container"
data-feature=
"year_of_birth"
data-title=
"${_("
Year
of
Birth
")}"
data-endpoint=
"${ section_data['get_distribution_url'] }"
data-feature=
"year_of_birth"
></div>
data-endpoint=
"${ section_data['get_distribution_url'] }"
></div>
<hr>
<hr>
<div
class=
"profile-distribution-widget-container"
<div
class=
"profile-distribution-widget-container"
data-title=
"${_("
Gender
Distribution
")}"
data-title=
"${_("
Gender
Distribution
")}"
data-feature=
"gender"
data-feature=
"gender"
data-endpoint=
"${ section_data['get_distribution_url'] }"
data-endpoint=
"${ section_data['get_distribution_url'] }"
></div>
></div>
<hr>
<hr>
<div
class=
"profile-distribution-widget-container"
<div
class=
"profile-distribution-widget-container"
data-title=
"${_("
Level
of
Education
")}"
data-title=
"${_("
Level
of
Education
")}"
data-feature=
"level_of_education"
data-feature=
"level_of_education"
data-endpoint=
"${ section_data['get_distribution_url'] }"
data-endpoint=
"${ section_data['get_distribution_url'] }"
></div>
></div>
%elif section_data['demographic_message']:
<p><em>
${section_data['demographic_message']}
</em></p>
%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