<% # Copyright (C) 2011 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <% rubric_summary_criterion ||= nil; criterion = rubric_summary_criterion || nil; assessing ||= false; brief ||= false; assessment_rating ||= nil %> <% @empty_rating ||= [OpenObject.new(:id => "blank", :description => t(:full_marks, "Full Marks"), :points => 5), OpenObject.new(:id => "blank_2", :description => t(:no_marks, "No Marks"), :points => 0)] %> " class="criterion <%= "blank" unless criterion %> criterion_<%= criterion ? criterion.id : "blank" %> <%= 'ignore_criterion_for_scoring' if criterion && criterion.ignore_for_scoring %> <%= 'learning_outcome_criterion' if criterion && criterion.learning_outcome_id %>"> <% if criterion && criterion.learning_outcome_id.present? %> <%= t("This criterion is linked to a Learning Outcome") %> <% end %> <%= criterion ? CanvasTextHelper.truncate_text(criterion.description, :max_length => 50) : t('defaults.description', "Description of criterion") %>
<%= t 'links.view_longer_description', "view longer description" %>
<% ratings = criterion ? criterion.ratings : @empty_rating %> <% ratings.each_index do |idx| %> <% rating = ratings[idx]; rating.edge = (idx == 0 || idx == ratings.length - 1) %>
"><%= rating.description %>
<% end %>
<%= assessment_rating ? assessment_rating.description : "" %>
<% comments = assessment_rating.comments if assessment_rating && assessment_rating.comments_enabled %> " style="margin-top: 5px;" ><%= comments || "" %>
<% ot(:out_of_points, "%{points}/%{total} pts", :points => capture { %> <%= assessing ? (assessment_rating ? I18n.n(assessment_rating.points) : "") : (criterion ? I18n.n(criterion.points) : I18n.n(5)) %><% }, :total => capture { %> <%= criterion ? I18n.n(criterion.points) : I18n.n(5) %><% }) %>
--