<%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse from courseware.courses import course_image_url, get_course_about_section from courseware.access import has_access from certificates.models import CertificateStatuses from xmodule.modulestore import MONGO_MODULESTORE_TYPE from xmodule.modulestore.django import modulestore %> <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> <%block name="title">${_("Dashboard")} <%block name="bodyclass">view-dashboard is-authenticated <%block name="js_extra">
%if message:
${message}
%endif

${ user.username }

${_("Current Courses")}

% if len(courses) > 0: % else:

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

${_("Find courses now!")}
% 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