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
d6984cce
Commit
d6984cce
authored
Feb 04, 2013
by
jmvt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated code to handle new analytics result format.
parent
549a5e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
28 deletions
+30
-28
lms/templates/courseware/instructor_dashboard.html
+30
-28
No files found.
lms/templates/courseware/instructor_dashboard.html
View file @
d6984cce
...
@@ -345,10 +345,10 @@ function goto( mode)
...
@@ -345,10 +345,10 @@ function goto( mode)
%if modeflag.get('Analytics'):
%if modeflag.get('Analytics'):
<p>
<p>
Number of students enrolled:
Number of students enrolled
for ${students_enrolled_json['data'][0]['course_id']}
:
% if students_enrolled_json is not None:
% if students_enrolled_json is not None:
% if students_enrolled_json['status'] == 'success':
% if students_enrolled_json['status'] == 'success':
${students_enrolled_json['data'][
'value
']} as of ${students_enrolled_json['time']}
${students_enrolled_json['data'][
0]['count
']} as of ${students_enrolled_json['time']}
% else:
% else:
<i>
${students_enrolled_json['error']}
</i>
<i>
${students_enrolled_json['error']}
</i>
% endif
% endif
...
@@ -358,10 +358,10 @@ function goto( mode)
...
@@ -358,10 +358,10 @@ function goto( mode)
</p>
</p>
<p>
<p>
Number of
active students
for the past 7 days:
Number of
students active for ${students_active_json['data'][0]['course_id']}
for the past 7 days:
% if students_active_json is not None:
% if students_active_json is not None:
% if students_active_json['status'] == 'success':
% if students_active_json['status'] == 'success':
${students_active_json['data'][
'value
']} as of ${students_active_json['time']}
${students_active_json['data'][
0]['count
']} as of ${students_active_json['time']}
% else:
% else:
<i>
${students_active_json['error']}
</i>
<i>
${students_active_json['error']}
</i>
% endif
% endif
...
@@ -407,8 +407,8 @@ function goto( mode)
...
@@ -407,8 +407,8 @@ function goto( mode)
<div
class=
"divScroll"
>
<div
class=
"divScroll"
>
<table
class=
"stat_table"
>
<table
class=
"stat_table"
>
<tr><th>
Problem
</th><th>
Number of students
</th></tr>
<tr><th>
Problem
</th><th>
Number of students
</th></tr>
% for
k,v in students_per_problem_correct_json['data'].items()
:
% for
row in students_per_problem_correct_json['data']
:
<tr>
<td>
${
k}
</td>
<td>
${v
}
</td>
</tr>
<tr>
<td>
${
row['module_id']}
</td>
<td>
${row['count']
}
</td>
</tr>
% endfor
% endfor
</table>
</table>
</div>
</div>
...
@@ -420,6 +420,7 @@ function goto( mode)
...
@@ -420,6 +420,7 @@ function goto( mode)
% endif
% endif
</p>
</p>
<p>
<p>
Students per module who attempted at least one problem
Students per module who attempted at least one problem
...
@@ -429,8 +430,8 @@ function goto( mode)
...
@@ -429,8 +430,8 @@ function goto( mode)
<div
class=
"divScroll"
>
<div
class=
"divScroll"
>
<table
class=
"stat_table"
>
<table
class=
"stat_table"
>
<tr><th>
Module
</th><th>
Number of students
</th></tr>
<tr><th>
Module
</th><th>
Number of students
</th></tr>
% for
k,v in attempted_problems['data'].items()
:
% for
row in attempted_problems['data']
:
<tr>
<td>
${
k}
</td>
<td>
${v
}
</td>
</tr>
<tr>
<td>
${
row['module_id']}
</td>
<td>
${row['count']
}
</td>
</tr>
% endfor
% endfor
</table>
</table>
</div>
</div>
...
@@ -444,6 +445,27 @@ function goto( mode)
...
@@ -444,6 +445,27 @@ function goto( mode)
</p>
</p>
<p>
<p>
<p>
<p>
Grade distribution:
</p>
% if overall_grade_distribution is not None:
% if overall_grade_distribution['status'] == 'success':
<div
class=
"divScroll"
>
<table
class=
"stat_table"
>
<tr><th>
Grade
</th><th>
Number of students
</th></tr>
% for row in overall_grade_distribution['data']:
<tr>
<td>
${row['overall_grade']}
</td>
<td>
${row['count']}
</td>
</tr>
% endfor
</table>
</div>
% else:
<i>
${dropoff_per_day['error']}
</i>
% endif
% else:
<i>
null data
</i>
% endif
</p>
##
<p>
Number of students who dropped off per day before becoming inactive:
</p>
##
<p>
Number of students who dropped off per day before becoming inactive:
</p>
##
##
## % if dropoff_per_day is not None:
## % if dropoff_per_day is not None:
...
@@ -464,26 +486,6 @@ function goto( mode)
...
@@ -464,26 +486,6 @@ function goto( mode)
## % endif
## % endif
##
</p>
##
</p>
##
##
##
<p>
##
<p>
Grade distribution:
</p>
##
## % if overall_grade_distribution is not None:
## % if overall_grade_distribution['status'] == 'success':
##
<div
class=
"divScroll"
>
##
<table
class=
"stat_table"
>
##
<tr><th>
Grade
</th><th>
Number of students
</th></tr>
## % for k,v in overall_grade_distribution['data'].items():
##
<tr>
<td>
${k}
</td>
<td>
${v}
</td>
</tr>
## % endfor
##
</table>
##
</div>
## % else:
##
<i>
${dropoff_per_day['error']}
</i>
## % endif
## % else:
##
<i>
null data
</i>
## % endif
##
</p>
##
<p>
##
<p>
...
...
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