Commit 32f76592 by Giulio Gratta

Evergreen Conditionals to show cert information

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