Course Progress

    <% lastChapter = None %> % for hw in homeworks:
  1. %if hw['chapter'] != lastChapter:

    ${ hw['chapter'] }

    <% lastChapter = hw['chapter'] %> %else:

    -

    %endif

    <% earned = hw['section_total'][0] total = hw['section_total'][1] percentageString = "{0:.0%}".format( float(earned)/total) if earned > 0 else "" %> ${ hw['section'] } ${"({0}/{1}) {2}".format( earned, total, percentageString )}

    ${hw['subtitle']} % if 'due' in hw and hw['due']!="": due ${hw['due']} % endif
      %if len(hw['scores']) > 0: %if hw['graded']: Problem Scores: %else: Practice Scores: %endif % for score in hw['scores']:
    • ${ score[0] }/${ score[1] }
    • % endfor %endif
  2. % endfor