Course Progress

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

      %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['section'] } ${"({0:.3n}/{1:.3n}) {2}".format( float(earned), float(total), percentageString )}

      ${section['subtitle']} %if 'due' in section and section['due']!="": due ${section['due']} %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
      %endif
    2. %endfor
  2. %endif %endfor