%
# Copyright (C) 2020 - 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('To upload some submissions for this assignment, click on the "Back to Assignment" button above.') %>
<%= t(<<~TEXT) We are currently processing your files. This may take a while depending on the file size of the submissions. You may navigate away from this screen and check back later by clicking on the "View Upload Status" link on the assignment page, or refresh this page to see the status. TEXT %>
<%= t("Oops, there was a problem re-uploading submissions. Check the zip file for issues and try again.") %>
<%= t(<<~TEXT) Done! We took the files you uploaded and attached them with a short comment to each user's submission page for this assignment. The students will get a notification that a new comment was added. TEXT %>
<%= t('Student') %> | <%= t('File') %> |
---|---|
<%= @presenter.student_name(comment) %> | <% last_index = comment[:attachments].size - 1 %> <% comment[:attachments].each_with_index do |file, index| -%> <% renamed = file[:filename] != file[:display_name] %> <%= file[:display_name] %><%= "," unless renamed || index == last_index %> <% if renamed -%> (<%= t("renamed from %{filename}", filename: file[:filename]) %>)<%= "," unless index == last_index %> <%- end %> <%- end %> |
<%= t(<<~TEXT) There were some files we didn't know what to do with. They have not been added to anyone's submission page. TEXT %>