<%! from django.utils.translation import ugettext as _ %> <%inherit file="/main.html" /> <%namespace name='static' file='/static_content.html'/> <%block name="headextra"> <%static:css group='course'/> <%namespace name="progress_graph" file="/courseware/progress_graph.js"/> <%block name="title">${_("{course_number} Progress").format(course_number=course.display_number_with_default) | h} <%! from django.core.urlresolvers import reverse %> <%! from xmodule.util.date_utils import get_time_display %> <%block name="js_extra"> <%include file="/courseware/course_navigation.html" args="active_page='progress'" />

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

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

      %for section in chapter['sections']:
    1. <% 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: ${"{0:.3n} of {1:.3n} possible points".format( float(earned), 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) due_date = '' if len(formatted_string)==0 else _('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
    2. %endfor
  2. %endif %endfor