Show points possible on submission details page
Fixes: GRADE-632 Test plan: - Given for both a Teacher and a Student - When on the student submission details page e.g. /courses/:course_id/assignments/:assignment_id/submissions/:student_id - Then the points possible is present next to the grade box e.g. "/ 10" Change-Id: I3cddb28c590b8bd7186751aedb9e2cc40235f6e7 Reviewed-on: https://gerrit.instructure.com/132023 Tested-by: Jenkins Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com> Reviewed-by: Jeremy Neander <jneander@instructure.com> Reviewed-by: Spencer Olson <solson@instructure.com> QA-Review: Indira Pai <ipai@instructure.com> Product-Review: Keith T. Garner <kgarner@instructure.com>
This commit is contained in:
parent
f5fa49ef4c
commit
bddc82076b
|
@ -65,7 +65,7 @@
|
|||
<td class="bold">
|
||||
<% if can_do(@assignment, @current_user, :grade) %>
|
||||
<%= render :partial => "gradebooks/grading_box", :object => @assignment, :locals => {:submission => @submission} %>
|
||||
<% elsif @submission.user_can_read_grade?(@current_user, session) %>
|
||||
<% else %>
|
||||
<span class="entered_grade">
|
||||
<% if @submission.excused? %>
|
||||
<%= t "Excused" %>
|
||||
|
@ -73,9 +73,9 @@
|
|||
<%= i18n_grade(round_if_whole @submission.entered_grade) %>
|
||||
<% end %>
|
||||
</span>
|
||||
<% if !@submission.excused? && @assignment.grading_type == 'points' && @assignment.points_possible %>
|
||||
<%= t('/ %{points_possible}', points_possible: I18n.n(round_if_whole @assignment.points_possible))%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if !@submission.excused? && @assignment.grading_type == 'points' && @assignment.points_possible %>
|
||||
<%= t('/ %{points_possible}', points_possible: I18n.n(round_if_whole @assignment.points_possible))%>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue