Commit d13509e6 by John Jarvis

Adding percentage formatting for final grade reporting

parent 4e4a29e0
...@@ -248,8 +248,9 @@ ...@@ -248,8 +248,9 @@
this time. Your final standing will be available shortly.</p> this time. Your final standing will be available shortly.</p>
% elif cert_status['status'] in ('ready', 'notpassing'): % elif cert_status['status'] in ('ready', 'notpassing'):
<p class="message-copy">Your final grade: <p class="message-copy">Your final grade:
<span class="grade-value">${cert_status['grade']}</span>, <span class="grade-value">${"{0:.0f}%".format(float(cert_status['grade'])*100)}</span>,
grade required for certificate: ${course.lowest_passing_grade}.</p> grade required for certificate: <span class="grade-value">
${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}</span>.</p>
% endif % endif
% if cert_status['show_disabled_download_button'] or cert_status['show_download_url'] or cert_status['show_survey_button']: % if cert_status['show_disabled_download_button'] or cert_status['show_download_url'] or cert_status['show_survey_button']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment