%! 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>
<%block name="bodyclass">view-dashboard is-authenticated%block>
<%block name="nav_skip">#my-courses%block>
<%block name="js_extra">
%block>
% 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 }
${_("Full Name")} (${_("edit")})${ user.profile.name | h }
${_("Email")}
% if external_auth_map is None or 'shib' not in external_auth_map.external_domain:
(${_("edit")})
% endif
${ user.email | h }
## Translators: this section lists all the third-party authentication providers (for example, Google and LinkedIn) the user can link with or unlink from their edX account.
${_("Account Links")}
% for state in provider_user_states:
${_("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
${_('Email Settings for {course_number}').format(course_number='')}
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("window open")}
${_('Password Reset Email Sent')}
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("window open")}
${_("Change Email")},
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("window open")}
${_("Change your name")}
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("window open")}
${_(' {course_number}? ').format(course_number='')}
,
## Translators: this text gives status on if the modal interface (a menu or piece of UI that takes the full focus of the screen) is open or not
${_("window open")}