Adding percentage formatting for final grade reporting

This commit is contained in:
John Jarvis
2012-11-26 17:42:55 -05:00
parent 4e4a29e030
commit d13509e6f3

View File

@@ -248,8 +248,9 @@
this time. Your final standing will be available shortly.</p>
% elif cert_status['status'] in ('ready', 'notpassing'):
<p class="message-copy">Your final grade:
<span class="grade-value">${cert_status['grade']}</span>,
grade required for certificate: ${course.lowest_passing_grade}.</p>
<span class="grade-value">${"{0:.0f}%".format(float(cert_status['grade'])*100)}</span>,
grade required for certificate: <span class="grade-value">
${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}</span>.</p>
% endif
% if cert_status['show_disabled_download_button'] or cert_status['show_download_url'] or cert_status['show_survey_button']: