From 4f005044d62cb557e916f6e10235df3d332ce776 Mon Sep 17 00:00:00 2001
From: jmvt
Date: Wed, 23 Jan 2013 10:17:17 -0500
Subject: [PATCH] Added time of query display.
---
.../courseware/instructor_dashboard.html | 52 ++++++++++---------
1 file changed, 27 insertions(+), 25 deletions(-)
diff --git a/lms/templates/courseware/instructor_dashboard.html b/lms/templates/courseware/instructor_dashboard.html
index 3260ee569b..967088de19 100644
--- a/lms/templates/courseware/instructor_dashboard.html
+++ b/lms/templates/courseware/instructor_dashboard.html
@@ -348,7 +348,7 @@ function goto( mode)
Number of students enrolled:
% if students_enrolled_json is not None:
% if students_enrolled_json['status'] == 'success':
- ${students_enrolled_json['data']['value']}
+ ${students_enrolled_json['data']['value']} as of ${students_enrolled_json['time']}
% else:
${students_enrolled_json['error']}
% endif
@@ -361,7 +361,7 @@ function goto( mode)
Number of active students for the past 7 days:
% if students_active_json is not None:
% if students_active_json['status'] == 'success':
- ${students_active_json['data']['value']}
+ ${students_active_json['data']['value']} as of ${students_active_json['time']}
% else:
${students_active_json['error']}
% endif
@@ -400,7 +400,7 @@ function goto( mode)
-
Number of active students per problems who have this problem graded as correct:
+ Number of students per problem who have this problem graded as correct, as of ${students_per_problem_correct_json['time']}
% if students_per_problem_correct_json is not None:
% if students_per_problem_correct_json['status'] == 'success':
@@ -420,28 +420,30 @@ function goto( mode)
% endif
-##
-##
Students who attempted at least one exercise:
-##
-## % if attempted_problems is not None:
-## % if attempted_problems['status'] == 'success':
-##
-## % else:
-## ${attempted_problems['error']}
-## % endif
-## % else:
-## null data
-## % endif
-##
-##
-##
+
+ Students per module who attempted at least one problem
+
+ % if attempted_problems is not None:
+ , as of ${attempted_problems['time']}
+ % if attempted_problems['status'] == 'success':
+
+ % else:
+ ${attempted_problems['error']}
+ % endif
+ % else:
+ : null data
+ % endif
+
+
+
+
##
Number of students who dropped off per day before becoming inactive:
##
## % if dropoff_per_day is not None: