From 825ac1cd42d4b36328b688e6833fd13254d9e870 Mon Sep 17 00:00:00 2001 From: Joe Blaylock Date: Tue, 6 May 2014 15:12:36 -0700 Subject: [PATCH] Fix dashboard template around final grade status * ae8847cd6e73 checked in buggy conditional in the dashboard templates that caused an empty 'details being wrapped up' box to display regardless of whether it was true. * Simplify conditional so that we care only whether output of the view's _cert_info() says 'processing', which should be the value computed when either no cert status exists or when the certs are, in fact processing. This should mean that the "details being wrapped up" message is displayed when certs haven't run and the grade box is displayed the rest of the time. --- .../dashboard/_dashboard_certificate_information.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lms/templates/dashboard/_dashboard_certificate_information.html b/lms/templates/dashboard/_dashboard_certificate_information.html index d8b3977574..951091f371 100644 --- a/lms/templates/dashboard/_dashboard_certificate_information.html +++ b/lms/templates/dashboard/_dashboard_certificate_information.html @@ -24,11 +24,8 @@ else: %>
-% if cert_status['status'] == 'processing' and not course.may_certify(): +% if cert_status['status'] == 'processing':

${_("Final course details are being wrapped up at this time. Your final standing will be available shortly.")}

-% elif course.may_certify() and cert_status['status'] == 'processing': - - % elif cert_status['status'] in ('generating', 'ready', 'notpassing', 'restricted'):

${_("Your final grade:")} ${"{0:.0f}%".format(float(cert_status['grade'])*100)}.