<%
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['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 _(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']:
- ${"{0:.3n}/{1:.3n}".format(float(score.earned),float(score.possible))}
%endfor
%else:
${_("No problem scores in this section")}
%endif
%endfor