Merge pull request #1037 from MITx/fix/rocha/dashboard-without-certificates

Fix syntax on dashboard template
This commit is contained in:
jarv
2012-11-09 18:42:39 -08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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 = {}

View File

@@ -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