<%! from django.utils.translation import ugettext as _ %> <%! from django.template import RequestContext %> <%! from third_party_auth import pipeline %> <%! from microsite_configuration import microsite %> <%! from django.core.urlresolvers import reverse %> <% cert_name_short = settings.CERT_NAME_SHORT cert_name_long = settings.CERT_NAME_LONG %> <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> <%block name="pagetitle">${_("Dashboard")} <%block name="bodyclass">view-dashboard is-authenticated <%block name="nav_skip">#my-courses <%block name="header_extras"> % for template_name in ["donation"]: % endfor <%block name="js_extra"> <%static:js group='dashboard'/>
% if reverifications["must_reverify"] or reverifications["denied"]: ## Section Element must be outside of the re-verify template. The template is re-used for courseware, and has separate styling.
<%include file='dashboard/_dashboard_prompt_midcourse_reverify.html' />
% endif %if message:
${message}
%endif % if duplicate_provider:
<%include file='dashboard/_dashboard_third_party_error.html' />
% endif %if enrollment_message:
${enrollment_message}
%endif

${ user.username }

${_("Current Courses")}

% if len(course_enrollment_pairs) > 0: % else:
% if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):

${_("Looks like you haven't enrolled in any courses yet.")}

${_("Find courses now!")} % else:

${_("Looks like you haven't enrolled in any courses yet.")}

%endif
% endif % if staff_access and len(errored_courses) > 0:

${_("Course-loading errors")}

% for course_dir, errors in errored_courses.items():

${course_dir | h}

    % for (msg, err) in errors:
  • ${msg}
    • ${err}
  • % endfor
% endfor % endif
<%include file='modal/_modal-settings-language.html' />