%
# 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
<% if can_do(@assignment, @current_user, :grade) %> <%= render :partial => "gradebooks/grading_box", :object => @assignment, :locals => {:submission => @submission} %> <% else %> <% if @submission.excused? %> <%= t "Excused" %> <% else %> <%= i18n_grade(round_if_whole(presenter.entered_grade), @submission.grading_type) %> <% end %> <% end %> <% if [email protected]? && @assignment.grading_type == 'points' && @assignment.points_possible && [email protected]_quantitative_data?(@current_user) %> <%= t('/ %{points_possible}', points_possible: I18n.n(round_if_whole @assignment.points_possible))%> <% end %> | |
<%= I18n.t('Late penalty:') %> | <%= points_deducted %> |
<%= I18n.t('Final grade:') %> | <% if can_do(@assignment, @current_user, :grade) %> <%= i18n_grade(round_if_whole(@submission.grade), @submission.grading_type) %> <% elsif @submission.user_can_read_grade?(@current_user, session) %> <%= i18n_grade(round_if_whole(@submission.published_grade), @submission.grading_type) %> <% end %> <% if @assignment.grading_type == 'points' %> / <%= points_possible %> <% end %> |
<%= t(:student_mute_notification, "Grades are unavailable because the instructor is working on them.") %>
<% end %> <% if @submission.can_view_plagiarism_report('vericite', @current_user, session) && @submission.posted? %> <% if (vericite_score = @submission.vericite_data(true)[@submission.asset_string]) && @submission.turnitin_data[:provider] == :vericite && vericite_score[:similarity_score] %> <% if show_updated_plagiarism_icons %> <%= render partial: 'shared/originality_score_icon', locals: { plagiarism_data: vericite_score, report_title: t("Similarity score -- more information"), report_url: context_url(@context, :context_assignment_submission_vericite_report_url, @submission.assignment_id, @submission.user_id, @submission.asset_string), tooltip_text: t("See VeriCite results") } %> <% else %> <%= vericite_score[:similarity_score] %>% <%= t(:see_vericite_results, "See VeriCite results") %> <% end %> <% end %> <% end %> <% if @assignment.active_rubric_association? && ( @submission.user_can_read_grade?(@current_user, session) || @assignment.rubric_association.user_can_assess_for?(assessor: @current_user, assessee: @submission.user) || @assignment.rubric_association.user_did_assess_for?(assessor: @current_user, assessee: @submission.user) || can_do(@assignment.rubric, @current_user, :read) ) %> <% unread_comments = @current_user.unread_rubric_assessments?(@submission) %>
<% end %> <% submission_comments.each do |comment| %> <% if can_do(comment, @current_user, :read) %> <% author_name = comment_author_name_for(comment) created_at = datetime_string(comment.created_at) %>
\1.") %> <%= comment.media_comment_id %>
\1.') %>