<% # 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 . %> <% grading_standard ||= GradingStandard.default_instance %>
<% if !read_only %> <% end %> <%= grading_standard.default_standard? ? I18n.t('Default Grading Scheme') : grading_standard.title %>
<% grading_standard.data.each_with_index do |row, idx| %> <% end %>
<%= t("Current grading scheme for this assignment") %>
<%= before_label('name', 'Name') %>
<%= before_label('range', 'Range') %>
<%= row[0] %>
<% if idx == 0 %> <%= I18n.n(100) %> <% else %> < <%= I18n.n((grading_standard.data[idx - 1][1] * 100).round(2)) %> <% end %> %
%
<%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %> <%= I18n.n((row[1] * 100).round(2)) %>%
<% if !read_only %> <%= t('managing_grading_standards', 'manage grading schemes') %> <% end %>
" style="display: none;" class="update_grading_standard_url">