From e256b2390bf4b251b559ff27751a28336b1fe96f Mon Sep 17 00:00:00 2001
From: Bridger Maxwell
Date: Wed, 10 Oct 2012 14:53:39 -0400
Subject: [PATCH] Added an indicator on Progress page when there are no problem
scores in a section.
---
lms/templates/courseware/progress.html | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/lms/templates/courseware/progress.html b/lms/templates/courseware/progress.html
index 87ac06bae6..81268ff081 100644
--- a/lms/templates/courseware/progress.html
+++ b/lms/templates/courseware/progress.html
@@ -65,16 +65,19 @@ ${progress_graph.body(grade_summary, course.grade_cutoffs, "grade-detail-graph")
%endif
- %if len(section['scores']) > 0:
-
+
+ %if len(section['scores']) > 0:
${ "Problem Scores: " if section['graded'] else "Practice Scores: "}
%for score in section['scores']:
- ${"{0:.3n}/{1:.3n}".format(float(score.earned),float(score.possible))}
%endfor
-
- %endif
+ %else:
+ No problem scores in this section
+ %endif
+
+
%endfor