Skip to content

Commit

Permalink
Merge pull request openedx#854 from MITx/feature/bridger/course_grading
Browse files Browse the repository at this point in the history
Added an indicator on Progress page when there are no problem scores in a section.
  • Loading branch information
David Ormsbee committed Oct 11, 2012
2 parents 51d0d74 + 5e2521d commit 0f2c22d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lms/templates/courseware/progress.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,19 @@ <h3><a href="${reverse('courseware_section', kwargs=dict(course_id=course.id, ch
%endif
</p>

%if len(section['scores']) > 0:
<section class="scores">
<section class="scores">
%if len(section['scores']) > 0:
<h3> ${ "Problem Scores: " if section['graded'] else "Practice Scores: "} </h3>
<ol>
%for score in section['scores']:
<li>${"{0:.3n}/{1:.3n}".format(float(score.earned),float(score.possible))}</li>
%endfor
</ol>
</section>
%endif
%else:
<h3 class="no-scores"> No problem scores in this section </h3>
%endif
</section>


</li> <!--End section-->
%endfor
Expand Down

0 comments on commit 0f2c22d

Please sign in to comment.