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
b8d1a138
Commit
b8d1a138
authored
Jul 23, 2013
by
Carlos Andrés Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show dates when the data was collected in the instructor dashboard panel
parent
77a796e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
lms/djangoapps/instructor/views.py
+2
-0
lms/templates/courseware/instructor_dashboard.html
+20
-9
No files found.
lms/djangoapps/instructor/views.py
View file @
b8d1a138
...
...
@@ -21,6 +21,7 @@ from django_future.csrf import ensure_csrf_cookie
from
django.views.decorators.cache
import
cache_control
from
django.core.urlresolvers
import
reverse
from
django.core.mail
import
send_mail
from
django.utils
import
timezone
import
xmodule.graders
as
xmgraders
from
xmodule.modulestore.django
import
modulestore
...
...
@@ -93,6 +94,7 @@ def instructor_dashboard(request, course_id):
'title'
:
'Course Statistics At A Glance'
,
}
data
=
[[
'# Enrolled'
,
CourseEnrollment
.
objects
.
filter
(
course_id
=
course_id
)
.
count
()]]
data
+=
[[
'Date'
,
timezone
.
now
()
.
isoformat
()]]
data
+=
compute_course_stats
(
course
)
.
items
()
if
request
.
user
.
is_staff
:
for
field
in
course
.
fields
:
...
...
lms/templates/courseware/instructor_dashboard.html
View file @
b8d1a138
...
...
@@ -39,10 +39,10 @@ table.stat_table td {
border-color
:
#666666
;
background-color
:
#ffffff
;
}
.divScroll
{
height
:
200px
;
overflow
:
scroll
;
}
.divScroll
{
height
:
200px
;
overflow
:
scroll
;
}
a
.selectedmode
{
background-color
:
yellow
;
}
...
...
@@ -114,7 +114,7 @@ function goto( mode)
<a
href=
"#"
onclick=
"goto('Data');"
class=
"${modeflag.get('Data')}"
>
DataDump
</a>
|
<a
href=
"#"
onclick=
"goto('Manage Groups');"
class=
"${modeflag.get('Manage Groups')}"
>
Manage Groups
</a>
%if settings.MITX_FEATURES.get('ENABLE_INSTRUCTOR_ANALYTICS'):
|
<a
href=
"#"
onclick=
"goto('Analytics');"
class=
"${modeflag.get('Analytics')}"
>
Analytics
</a>
|
<a
href=
"#"
onclick=
"goto('Analytics');"
class=
"${modeflag.get('Analytics')}"
>
Analytics
</a>
%endif
]
</h2>
...
...
@@ -449,6 +449,7 @@ function goto( mode)
<p>
Students enrolled:
${analytics_results["StudentsEnrolled"]['data'][0]['students']}
(${analytics_results["StudentsEnrolled"]['time']})
</p>
%endif
...
...
@@ -456,11 +457,15 @@ function goto( mode)
<p>
Students active in the last week:
${analytics_results["StudentsActive"]['data'][0]['active']}
(${analytics_results["StudentsActive"]['time']})
</p>
%endif
%if analytics_results.get("StudentsDropoffPerDay"):
<p>
Student activity day by day
</p>
<p>
Student activity day by day
(${analytics_results["StudentsDropoffPerDay"]['time']})
</p>
<div>
<table
class=
"stat_table"
>
<tr>
...
...
@@ -479,7 +484,10 @@ function goto( mode)
%endif
<br/>
%if analytics_results.get("ProblemGradeDistribution"):
<p>
Answer distribution for problems
</p>
<p>
Answer distribution for problems
(${analytics_results["ProblemGradeDistribution"]['time']})
</p>
<div>
<table
class=
"stat_table"
>
<tr>
...
...
@@ -513,7 +521,10 @@ function goto( mode)
##This is not as helpful as it could be -- let's give full point distribution
##instead.
%if analytics_results.get("StudentsPerProblemCorrect"):
<p>
Students answering correctly
</p>
<p>
Students answering correctly
(${analytics_results["StudentsPerProblemCorrect"]['time']})
</p>
<div
class=
"divScroll"
>
<table
class=
"stat_table"
>
<tr>
...
...
@@ -597,7 +608,7 @@ function goto( mode)
%endif
##-----------------------------------------------------------------------------
##-----------------------------------------------------------------------------
%if datatable and modeflag.get('Psychometrics') is None:
...
...
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