Commit 32f76592 by Giulio Gratta

Evergreen Conditionals to show cert information

parent 32a84e57
......@@ -14,9 +14,7 @@ else:
%>
<div class="message message-status ${status_css_class} is-shown">
% if course.may_certify() and cert_status['status'] == 'processing':
<p class="message-copy">${_("Your final standing is unrequested or unavailable at this time.")}</p>
% elif cert_status['status'] == 'processing':
% if cert_status['status'] == 'processing':
<p class="message-copy">${_("Final course details are being wrapped up at this time. Your final standing will be available shortly.")}</p>
% elif cert_status['status'] in ('generating', 'ready', 'notpassing', 'restricted'):
<p class="message-copy">${_("Your final grade:")}
......
......@@ -57,8 +57,8 @@
</h3>
</hgroup>
% if course.may_certify() and cert_status and not enrollment.mode == 'audit':
<%include file='_dashboard_certificate_information.html' args='cert_status=cert_status,course=course, enrollment=enrollment'/>
% if (course.may_certify() and cert_status and (cert_status['status'] != 'processing')) or (course.has_ended() and cert_status and (not enrollment.mode == 'audit')):
<%include file='_dashboard_certificate_information.html' args='cert_status=cert_status, course=course, enrollment=enrollment'/>
% endif
% if course_mode_info['show_upsell']:
......
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