Commit 21c30002 by Victor Shnayder Committed by Carlos Andrés Rocha

fix syntax in template

parent 2846c61d
...@@ -148,30 +148,30 @@ ...@@ -148,30 +148,30 @@
% if course.has_ended: % if course.has_ended:
<% <%
passing_grade = False passing_grade = False
cert_button = False cert_button = False
survey_button = False survey_button = False
if cert_status['status'] in [CertificateStatuses.generating, CertificateStatuses.regenerating]: if cert_status['status'] in [CertificateStatuses.generating, CertificateStatuses.regenerating]:
status_css_class = 'course-status-certrendering' status_css_class = 'course-status-certrendering'
cert_button = True cert_button = True
survey_button = True survey_button = True
passing_grade = True passing_grade = True
elif cert_status['status'] == CertificateStatuses.downloadable: elif cert_status['status'] == CertificateStatuses.downloadable:
status_css_class = 'course-status-certavailable' status_css_class = 'course-status-certavailable'
cert_button = True cert_button = True
survey_button = True survey_button = True
passing_grade = True passing_grade = True
elif cert_status['status'] == CertificateStatuses.notpassing: elif cert_status['status'] == CertificateStatuses.notpassing:
status_css_class = 'course-status-certnotavailable' status_css_class = 'course-status-certnotavailable'
survey_button = True survey_button = True
else cert_status['status']: else:
# This is primarily the 'unavailable' state, but also 'error', 'deleted', etc. # This is primarily the 'unavailable' state, but also 'error', 'deleted', etc.
status_css_class = 'course-status-processing' status_css_class = 'course-status-processing'
if survey_button and not course.end_of_course_survey_url: if survey_button and not course.end_of_course_survey_url:
survey_button = False survey_button = False
%> %>
<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 == CertificateStatuses.unavailable:
......
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