%
# 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(:pending_batches_count, {:one => "%{count} batch waiting to be processed.", :other => "%{count} batches waiting to be processed."}, :count => pending_batch_count) %>
<%= t(:started_at_message, "Started: %{started_at}", :started_at => datetime_string(@last_batch.created_at)) %>
<% if @last_batch.diffing_data_set_identifier %>
<%= t("Data Set Identifier: %{data_set_id}", data_set_id: @last_batch.diffing_data_set_identifier) %>
<% if @last_batch.data[:diffed_against_sis_batch_id] %><%= t("Incremental update successfully generated against a previous SIS Import.") %>
<% end %> <% end %> <% if @last_batch.workflow_state == 'imported' %> <%= t(:imported_message, "All SIS data was successfully imported.") %> <%= print_counts @last_batch %> <% elsif @last_batch.workflow_state == 'imported_with_messages' %> <%= t(:imported_with_messages_message, "The SIS data was imported but with these messages:") %> <% if @last_batch.errors_attachment_id %><%= t('Download the complete list of errors and warnings here.') %> <%= link_to "".html_safe, file_download_url(@last_batch.errors_attachment, verifier: sis_import_error_attachment_token(@last_batch), download: '1', download_frd: '1'), 'aria-label' => t('Download errors_attchment'), 'title' => t('Download errors_attchment') %>
<% end %> <%= print_messages(@last_batch) %> <%= print_counts @last_batch %> <% elsif @last_batch.workflow_state == 'failed' %> <%= t(:import_failed_message, "There was an error importing your SIS data.") %> <% elsif @last_batch.workflow_state == 'failed_with_messages' %> <%= t(:import_failed_with_messages_message, "The import failed with these messages:") %> <% if @last_batch.errors_attachment_id %><%= t('Download the complete list of errors and warnings here.') %> <%= link_to "".html_safe, file_download_url(@last_batch.errors_attachment, verifier: sis_import_error_attachment_token(@last_batch), download: '1', download_frd: '1'), 'aria-label' => t('Download errors_attchment'), 'title' => t('Download errors_attchment') %>
<% end %> <%= print_messages(@last_batch) %> <% elsif @last_batch.workflow_state == 'aborted' %> <%= t('The previous SIS batch was aborted') %> <%= print_messages(@last_batch) %> <% end %>