<%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse %> <%inherit file="/main.html" /> <%namespace name='static' file='/static_content.html'/> <%block name="headextra"> <%static:css group='style-course-vendor'/> <%static:css group='style-course'/> <%namespace name="progress_graph" file="/courseware/progress_graph.js"/> <%block name="pagetitle">${_("{course_number} Progress").format(course_number=course.display_number_with_default) | h} <%block name="nav_skip">#course-info-progress <%! from django.core.urlresolvers import reverse %> <%! from util.date_utils import get_time_display from django.conf import settings from django.utils.http import urlquote_plus %> <%block name="js_extra"> <%include file="/courseware/course_navigation.html" args="active_page='progress'" />
% if staff_access and studio_url is not None: % endif

${_("Course Progress for Student '{username}' ({email})").format(username=student.username, email=student.email)}

%if show_generate_cert_btn:
%if passed: % if is_downloadable and download_url: <% post_url = reverse('generate_user_cert', args=[unicode(course.id)]) %>

${_("Your certificate is available")}

${_( "You can now download your certificate as a PDF. If you keep working and receive a higher grade,you can request an {link_start} updated certificate {link_end}.").format( link_start=u"".format(post_url) ,link_end=u"")}

%elif is_generating:

${_("We're working on it...")}

${_("We're creating your certificate. You can keep working in your courses and a link to it will appear here and on your Dashboard when it is ready.")}

%else:

${_("Congratulations, you qualified for a certificate!")}

${_("You can keep working for a higher grade, or request your certificate now.")}

%endif
%endif
%endif %if not course.disable_progress_graph: %endif
%for chapter in courseware_summary: %if not chapter['display_name'] == "hidden":

${ chapter['display_name'] }

%for section in chapter['sections']:
<% earned = section['section_total'].earned total = section['section_total'].possible percentageString = "{0:.0%}".format( float(earned)/total) if earned > 0 and total > 0 else "" %>

${ section['display_name'] } %if total > 0 or earned > 0: ${_("{earned:.3n} of {total:.3n} possible points").format( earned = float(earned), total = float(total) )} %endif %if total > 0 or earned > 0: ${"({0:.3n}/{1:.3n}) {2}".format( float(earned), float(total), percentageString )} %endif

${section['format']} %if section.get('due') is not None: <% formatted_string = get_time_display(section['due'], course.due_date_display_format, coerce_tz=settings.TIME_ZONE_DISPLAYED_FOR_DEADLINES) due_date = '' if len(formatted_string)==0 else _(u'due {date}').format(date=formatted_string) %> ${due_date} %endif

%if len(section['scores']) > 0:

${ _("Problem Scores: ") if section['graded'] else _("Practice Scores: ")}

    %for score in section['scores']:
  1. ${"{0:.3n}/{1:.3n}".format(float(score.earned),float(score.possible))}
  2. %endfor
%else:

${_("No problem scores in this section")}

%endif
%endfor
%endif %endfor