%
# 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
<%= friendly_message %>
<% end %><% date = "#{datetime_string export.created_at}".html_safe %> <% wrapper = link_to('\1', export.attachment ? verified_file_download_url(export.attachment) : nil) %> <% if export.expired? %> <%= t "Course Export from %{date} (file not available)", :date => date %> <% elsif export.export_type == ContentExport::COMMON_CARTRIDGE %> <%= t "*Course Export from %{date}*", :date => date, :wrapper => wrapper %> <% elsif export.export_type == ContentExport::QTI %> <%= t "*QTI Export from %{date}*", :date => date, :wrapper => wrapper %> <% elsif export.export_type == ContentExport::USER_DATA %> <%= t "*User Data Export from %{date}*", :date => date, :wrapper => wrapper %> <% elsif export.export_type == ContentExport::ZIP %> <%= t "*File Export from %{date}*", :date => date, :wrapper => wrapper %> <% end %>
<% end %> <% end %> <% end %><%= t "Content export files cannot be downloaded after %{days} days.", days: ContentExport.expire_days %>
<% end %> <% if @current_export_id %>