<%! from django.utils.translation import ugettext as _ %> <%! from django.template import RequestContext %> <%! from third_party_auth import pipeline %> <%! from django.core.urlresolvers import reverse import waffle %> <% 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="js_extra"> % if reverifications["must_reverify"] or reverifications["denied"]:
<%include file='dashboard/_dashboard_prompt_midcourse_reverify.html' />
% endif
%if message:
${message}
%endif % if duplicate_provider:
## Translators: this message is displayed when a user tries to link their account with a third-party authentication provider (for example, Google or LinkedIn) with a given edX account, but their third-party account is already associated with another edX account. provider_name is the name of the third-party authentication provider, and platform_name is the name of the edX deployment. ${_('The selected {provider_name} account is already linked to another {platform_name} account. Please {link_start}log out{link_end}, then log in with your {provider_name} account.').format(link_end='', link_start='' % logout_url, provider_name='%s' % duplicate_provider.NAME, platform_name=platform_name)}
% endif

${ user.username }

${_("Current Courses")}

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

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

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

${_("Looks like you haven't been 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' />