<%
# 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 <http://www.gnu.org/licenses/>.
%>

<div style="margin: 50px auto; width: 400px;">
  <% if params[:lti_errormsg] %>
    <h2><%= t :load_failure_title, "Tool Failed to Load" %></h2>
    <%= t :load_failure_message, "There was a problem loading the specified tool. Please contact your administrator if these problems persist." %>
    <div class="error" style="color: #a40; margin-top: 20px;">
      <%= params[:lti_errormsg] %>
    </div>
  <% else %>
    <h2><%= t :load_success_title, "Tool Use Finished" %></h2>
    <%= t :load_success_message, "You are free to navigate away from this page." %>
    <div class="error" style="color: #a40; margin-top: 20px;">
      <%= params[:lti_msg] %>
    </div>
  <% end %>
</div>
