<% # 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 ||= nil %> <% rubric = rubric_summary %> <% rubric_association ||= nil; editable ||= false; association_object = nil edit ||= false; rubic ||= nil; assessing ||= false; assessment ||= nil; brief ||= false; checkpointed ||= false; %>
" style="<%= 'hidden' unless brief %>">

<%= t 'rubric', "Rubric" %>

<%= rubric.try(:title) || t('defaults.title', "Title") %>
<% if rubric && rubric.criteria %> <% rubric.criteria_object.each do |criterion| %> <% rating = assessment.ratings.find{|r| r.criterion_id == criterion.id} rescue nil %> <%= render :partial => "shared/rubric_summary_criterion", :object => criterion, :locals => {:assessing => assessing, :assessment_rating => rating, :brief => brief} %> <% end %> <% else %> <%= render :partial => "shared/rubric_summary_criterion", :locals => {:assessing => assessing, :brief => brief} %> <% end %>
<%= rubric.try(:title) || t('defaults.title', "Title") %>
<%= t 'headers.criteria', "Criteria" %> <%= t 'headers.assessment', "Assessment" %>
<%= before_label :total_points, "Total Points" %> <%= t "*%{points}* out of **%{total}**", points: (assessing ? "0" : (I18n.n(rubric.points_possible) rescue 5)), total: (I18n.n(rubric.points_possible) rescue 5), wrapper: { '*' => "\\1", '**' => "\\1" } %>
<% if checkpointed %>
<% end %>