From adc95ba14cf569e7ec35167dfbe4e814f9358e36 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Sun, 16 Sep 2012 00:36:55 -0400 Subject: [PATCH] Minor change on progress page. Hiding (0/0) on sections that don't have any score. --- lms/templates/courseware/progress.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lms/templates/courseware/progress.html b/lms/templates/courseware/progress.html index 86649a2e91..87ac06bae6 100644 --- a/lms/templates/courseware/progress.html +++ b/lms/templates/courseware/progress.html @@ -50,7 +50,11 @@ ${progress_graph.body(grade_summary, course.grade_cutoffs, "grade-detail-graph") %>

- ${ section['display_name'] } ${"({0:.3n}/{1:.3n}) {2}".format( float(earned), float(total), percentageString )}

+ ${ section['display_name'] } + %if total > 0 or earned > 0: + ${"({0:.3n}/{1:.3n}) {2}".format( float(earned), float(total), percentageString )} + %endif +

${section['format']}