From d13509e6f303afd658721c94cea317b3d7f4eaa3 Mon Sep 17 00:00:00 2001
From: John Jarvis
Date: Mon, 26 Nov 2012 17:42:55 -0500
Subject: [PATCH] Adding percentage formatting for final grade reporting
---
lms/templates/dashboard.html | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html
index aa4dac98a0..cbba8bd4b5 100644
--- a/lms/templates/dashboard.html
+++ b/lms/templates/dashboard.html
@@ -248,8 +248,9 @@
this time. Your final standing will be available shortly.
% elif cert_status['status'] in ('ready', 'notpassing'):
Your final grade:
- ${cert_status['grade']},
- grade required for certificate: ${course.lowest_passing_grade}.
+ ${"{0:.0f}%".format(float(cert_status['grade'])*100)},
+ grade required for certificate:
+ ${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}.
% endif
% if cert_status['show_disabled_download_button'] or cert_status['show_download_url'] or cert_status['show_survey_button']: