Merge pull request #1037 from MITx/fix/rocha/dashboard-without-certificates
Fix syntax on dashboard template
This commit is contained in:
@@ -149,7 +149,7 @@ def dashboard(request):
|
||||
# TODO: workaround to not have to zip courses and certificates in the template
|
||||
# since before there is a migration to certificates
|
||||
if settings.MITX_FEATURES.get('CERTIFICATES_ENABLED'):
|
||||
cert_statuses = {(course.id, certificate_status_for_student(request.user, course.id)) for course in courses}
|
||||
cert_statuses = { course.id: certificate_status_for_student(request.user, course.id) for course in courses}
|
||||
else:
|
||||
cert_statuses = {}
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
<%
|
||||
cert_status = cert_statuses.get(course.id)
|
||||
%>
|
||||
% if course.has_ended and cert_status:
|
||||
% if course.has_ended() and cert_status:
|
||||
<%
|
||||
passing_grade = False
|
||||
cert_button = False
|
||||
|
||||
Reference in New Issue
Block a user