%
# 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
<%= t 'headings.student_name', %{Student} %> | <%= t 'headings.last_interaction', 'Last Student Interaction' %> | <%= t('headings.current_score', %{Current Score}) %> | <%= t('headings.final_score', %{Final Score}) %> | <%= t('headings.ungraded', %{Ungraded Assignments}) %> | <% if course.user_has_been_instructor?(@current_user) %><% end %> |
---|---|---|---|---|---|
<%= link_to(student[:enrollment].user.name, course_user_url(course, student[:enrollment].user_id)) %> | <% if student[:last_interaction] %> <%= t 'last_time', { :zero => "less than 1 day ago", :one => "1 day ago", :other => "%{count} days ago" }, :count => (((Time.now - student[:last_interaction])/60)/1440).abs.to_i %> <% else %> <%= t 'last_time_never', 'never' %> <% end %> | <%= n(student[:enrollment].computed_current_score, percentage: true, precision: 1) %> | <%= n(student[:enrollment].computed_final_score, percentage: true, precision: 1) %> |
<% student[:ungraded].each do |submission| %>
<%= link_to(submission.assignment.title, speed_grader_course_gradebook_path(course, assignment_id: submission.assignment.id, student_id: student[:enrollment].user_id)) %>
<% if submission.submitted_at %>
<%= t 'submitted_time', { :zero => "submitted less than 1 day ago", :one => "submitted 1 day ago", :other => "submitted %{count} days ago" }, :count => (((Time.now - submission.submitted_at)/60)/1440).abs.to_i %>
<% end %>
<% end %>
|
<% if course.user_has_been_instructor?(@current_user) %>
<% end %> |