Skip to content

Commit

Permalink
allow emtpy grader when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
stgm committed Jul 20, 2018
1 parent 2efc10f commit 34d66d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/dump_grades.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<tr>
<td><strong><%= sub.pset.name if sub.pset.present? %></strong><br><small><%= sub.created_at.strftime("%d-%m-%Y %H:%M") %></small></td>
<% if sub.grade.present? %>
<td><%= sub.grade.any_final_grade %><br><small><%= sub.grade.updated_at.strftime("%d-%m-%Y %H:%M") %> (<%= sub.grade.grader.name %>)</small></td>
<td><%= sub.grade.any_final_grade %><br><small><%= sub.grade.updated_at.strftime("%d-%m-%Y %H:%M") %> (<%= sub.grade.grader.name if sub.grade.grader %>)</small></td>
<td>
<%= sub.grade.subgrades.to_h.values.join(" / ") %>
</td>
Expand Down

0 comments on commit 34d66d1

Please sign in to comment.