Don't display pts possible for rubrics w/o pts
closes OUT-2189 test plan: - in a course, create an outcome - click on the "Manage Rubrics" button to view course rubrics - create a rubric with a single outcome as a criterion, making sure "Use this criterion for scoring" is unchecked when importing into the rubric - refresh the course rubrics page - confirm that the rubric only displays the total number of criteria and does not display any points possible Change-Id: Ic18b7b80228b02724af88190bce58cd3e051433d Reviewed-on: https://gerrit.instructure.com/170979 Tested-by: Jenkins Reviewed-by: Frank Murphy III <fmurphy@instructure.com> Reviewed-by: Neil Gupta <ngupta@instructure.com> QA-Review: Brian Watson <bwatson@instructure.com> Product-Review: Neil Gupta <ngupta@instructure.com>
This commit is contained in:
parent
1a8736e018
commit
55168e2f71
|
@ -66,7 +66,7 @@
|
|||
</span>
|
||||
<span class="details">
|
||||
<%= t({:one => "1 criterion", :other => "%{count} criteria"}, :count => rubric.criteria.length) %><br/>
|
||||
<%= t('points_possible', {:one => "1 point possible", :other => "%{count} points possible"}, :count => round_if_whole(rubric.points_possible)) %>
|
||||
<%= t('points_possible', {:one => "1 point possible", :other => "%{count} points possible"}, :count => round_if_whole(rubric.points_possible)) unless rubric.points_possible.nil? %>
|
||||
</span>
|
||||
</li>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue