Commit 2e54d9c0 by Victor Shnayder Committed by Carlos Andrés Rocha

bugfixes in template

parent c2854cae
...@@ -182,21 +182,21 @@ ...@@ -182,21 +182,21 @@
%> %>
<div class="message message-status ${status_css_class} is-shown"> <div class="message message-status ${status_css_class} is-shown">
% if cert_status == CertificateStatuses.unavailable: % if cert_status['status'] == CertificateStatuses.unavailable:
<p class="message-copy">Final course details are being wrapped up at this time. <p class="message-copy">Final course details are being wrapped up at this time.
Your final standing will be available shortly.</p> Your final standing will be available shortly.</p>
% elif passing_grade: % elif passing_grade:
<p class="message-copy">You have received a grade of <p class="message-copy">You have received a grade of
<span class="grade-value">${cert_status['grade']}</span> <span class="grade-value">${cert_status['grade']}</span>
in this course.</p> in this course.</p>
% elif cert_status == CertificateStatuses.notpassing: % elif cert_status['status'] == CertificateStatuses.notpassing:
<p class="message-copy">You did not complete the necessary requirements for <p class="message-copy">You did not complete the necessary requirements for
completion of this course. Your grade was <span class="grade-value">${cert_status['grade']}</span> completion of this course. Your grade was <span class="grade-value">${cert_status['grade']}</span>
</p> </p>
% endif % endif
% if cert_button or survey_button: % if cert_button or survey_button:
<ul class="actions"> <ul class="actions">
% if cert_button and cert_status['status'] == CertificateStatuses.generating: % if cert_button and cert_status['status'] in [CertificateStatuses.generating, CertificateStatuses.regenerating]:
<li class="action"><span class="btn disabled" href="">Your Certificate is Generating</span></li> <li class="action"><span class="btn disabled" href="">Your Certificate is Generating</span></li>
% elif cert_button and cert_status['status'] == CertificateStatuses.downloadable: % elif cert_button and cert_status['status'] == CertificateStatuses.downloadable:
<li class="action"> <li class="action">
......
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