Skip to content

Commit

Permalink
update code after adding check => show score only if weight > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-qayyum-khan committed Jun 17, 2015
1 parent 50a771c commit a203592
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions edx_sga/templates/staff_graded_assignment/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<p>No file has been uploaded.</p>
<% } %>
<% if (graded) { %>
<p>Your score is <%= (graded.score / max_score) * weight %> / <%= weight %><br/>
<% if (weight > 0) { %>
<p>Your score is <%= (graded.score / max_score) * weight %> / <%= weight %><br/>
<% } %>
<% if (graded.comment) { %>
<b>Instructor comment</b> <%= graded.comment %>
<% } %>
Expand Down Expand Up @@ -73,7 +75,9 @@
<td><%= assignment.timestamp %></td>
<td>
<% if (assignment.score !== null) { %>
<%= (assignment.score / max_score) * weight %> / <%= weight %>
<% if (weight > 0) { %>
<%= (assignment.score / max_score) * weight %> / <%= weight %>
<% } %>
<% if (! assignment.approved) { %>
({% trans "Awaiting instructor approval" %})
<% } %>
Expand Down

0 comments on commit a203592

Please sign in to comment.