Commit 71ab4ecc by Sofiya Semenova Committed by GitHub

Merge pull request #16087 from edx/ssemenova/ed-1315

Educator-1315 Don't show processing message on dashboard if course is self-paced
parents 167472da bfb61093
...@@ -27,10 +27,11 @@ elif cert_status['status'] == 'notpassing': ...@@ -27,10 +27,11 @@ elif cert_status['status'] == 'notpassing':
else: else:
status_css_class = 'course-status-processing' status_css_class = 'course-status-processing'
%> %>
<div class="message message-status ${status_css_class} is-shown"> % if not (cert_status['status'] == 'processing' and course_overview.self_paced):
% if cert_status['status'] == 'processing': <div class="message message-status ${status_css_class} is-shown">
% if cert_status['status'] == 'processing' and not course_overview.self_paced:
<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', 'auditing', 'unverified'): % elif cert_status['status'] in ('generating', 'ready', 'notpassing', 'restricted', 'auditing', 'unverified'):
<p class="message-copy">${_("Your final grade:")} <p class="message-copy">${_("Your final grade:")}
<span class="grade-value">${"{0:.0f}%".format(float(cert_status['grade'])*100)}</span>. <span class="grade-value">${"{0:.0f}%".format(float(cert_status['grade'])*100)}</span>.
% if cert_status['status'] == 'notpassing': % if cert_status['status'] == 'notpassing':
...@@ -55,9 +56,9 @@ else: ...@@ -55,9 +56,9 @@ else:
</p> </p>
% endif % endif
</p> </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']:
<div class="wrapper-message-primary"> <div class="wrapper-message-primary">
<ul class="actions actions-primary"> <ul class="actions actions-primary">
% if cert_status['show_disabled_download_button']: % if cert_status['show_disabled_download_button']:
...@@ -113,6 +114,7 @@ else: ...@@ -113,6 +114,7 @@ else:
${_('Since we did not have a valid set of verification photos from you when your {cert_name_long} was generated, we could not grant you a verified {cert_name_short}. An honor code {cert_name_short} has been granted instead.').format(cert_name_short=cert_name_short, cert_name_long=cert_name_long)} ${_('Since we did not have a valid set of verification photos from you when your {cert_name_long} was generated, we could not grant you a verified {cert_name_short}. An honor code {cert_name_short} has been granted instead.').format(cert_name_short=cert_name_short, cert_name_long=cert_name_long)}
</div> </div>
% endif % endif
% endif
</div>
% endif % endif
</div>
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