<%! 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 %> <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> <%block name="title">Dashboard <%block name="js_extra">
%if message:
${message}
%endif

${ user.username }

%if news: %endif

Current Courses

% if len(courses) > 0: % for course in courses:
<% if has_access(user, course, 'load'): course_target = reverse('info', args=[course.id]) else: course_target = reverse('about_course', args=[course.id]) %>

% if course.has_ended(): Course Completed - ${course.end_date_text} % elif course.has_started(): Course Started - ${course.start_date_text} % else: # hasn't started yet Course Starts - ${course.start_date_text} % endif

${get_course_about_section(course, 'university')}

${course.number} ${course.display_name_with_default}

<% testcenter_exam_info = course.current_test_center_exam registration = exam_registrations.get(course.id) testcenter_register_target = reverse('begin_exam_registration', args=[course.id]) %> % if testcenter_exam_info is not None: % if registration is None and testcenter_exam_info.is_registering():
Register for Pearson exam

Registration for the Pearson exam is now open and will close on ${testcenter_exam_info.registration_end_date_text}

% endif % if registration is not None: % if registration.is_accepted:
Schedule Pearson exam

Registration number: ${registration.client_candidate_id}

Write this down! You’ll need it to schedule your exam.

% endif % if registration.is_rejected:

Your registration for the Pearson exam has been rejected. Please see your registration status details. Otherwise contact edX at exam-help@edx.org for further help.

% endif % if not registration.is_accepted and not registration.is_rejected:

Your registration for the Pearson exam is pending. Within a few days, you should see a confirmation number here, which can be used to schedule your exam.

% endif % endif % endif <% cert_status = cert_statuses.get(course.id) %> % if course.has_ended() and cert_status: <% if cert_status['status'] == 'generating': status_css_class = 'course-status-certrendering' elif cert_status['status'] == 'ready': status_css_class = 'course-status-certavailable' elif cert_status['status'] == 'notpassing': status_css_class = 'course-status-certnotavailable' else: status_css_class = 'course-status-processing' %>
% if cert_status['status'] == 'processing':

Final course details are being wrapped up at this time. Your final standing will be available shortly.

% elif cert_status['status'] in ('generating', 'ready', 'notpassing', 'restricted'):

Your final grade: ${"{0:.0f}%".format(float(cert_status['grade'])*100)}. % if cert_status['status'] == 'notpassing': Grade required for a certificate: ${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}. % elif cert_status['status'] == 'restricted':

Your certificate is being held pending confirmation that the issuance of your certificate is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting info@edx.org.

% endif

% endif % if cert_status['show_disabled_download_button'] or cert_status['show_download_url'] or cert_status['show_survey_button']: % endif
% endif % if course.id in show_courseware_links_for: % if course.has_ended(): View Archived Course % else: View Course % endif % endif Unregister
% endfor % 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