handle exceptions and create the necessary html in optimizely

This commit is contained in:
Matthew Piatetsky
2018-02-08 10:25:52 -05:00
parent 4e7a602e67
commit 826ef28b4d
3 changed files with 28 additions and 34 deletions

View File

@@ -146,7 +146,7 @@ from student.models import CourseEnrollment
<h2 class="header-courses">${_("My Courses")}</h2>
</header>
% if len(course_entitlements + course_enrollments) > 0:
<ul class="listing-courses">
<ul class="listing-courses" data-programs=${programs_data}>
<% share_settings = getattr(settings, 'SOCIAL_SHARING_SETTINGS', {}) %>
% for dashboard_index, enrollment in enumerate(course_entitlements + course_enrollments):
<%