Course Progress

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

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

      ${ section['section'] } ${"({0:g}/{1:g}) {2}".format( earned, 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:g}/{1:g}".format(score[0],score[1])}
      2. %endfor
      %endif
    2. %endfor
  2. %endif %endfor