X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3e443d57aaecd34e63a8d861c7075ab7b0f61174..0561bd0c3c07257fd58ded6c7cfa5feeae97af57:/apps/workbench/app/views/application/api_error.html.erb diff --git a/apps/workbench/app/views/application/api_error.html.erb b/apps/workbench/app/views/application/api_error.html.erb index 68fe32b0fb..8f3c69bf8e 100644 --- a/apps/workbench/app/views/application/api_error.html.erb +++ b/apps/workbench/app/views/application/api_error.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +

Oh... fiddlesticks.

An error occurred when Workbench sent a request to the Arvados API server. Try reloading this page. If the problem is temporary, your request might go through next time. @@ -22,17 +26,4 @@ If that doesn't work, the information below can help system administrators track <% end %> -

-
Would you like to report this problem?
-<% if api_error %> - <%= link_to report_issue_popup_path(popup_type: 'report', current_location: request.fullpath, action_method: 'post', api_error_request_url: api_error.request_url, api_error_response: api_error.api_response_s), - {class: 'btn btn-primary report-issue-modal-window', 'data-toggle' => "modal", 'data-target' => '#report-issue-modal-window', :remote => true, return_to: request.url} do %> - Report problem - <% end %> -<% else %> - <%= link_to report_issue_popup_path(popup_type: 'report', current_location: request.fullpath, action_method: 'post'), - {class: 'btn btn-primary report-issue-modal-window', 'data-toggle' => "modal", 'data-target' => '#report-issue-modal-window', :remote => true, return_to: request.url} do %> - Report problem - <% end %> -<% end %> -

+<%= render :partial => "report_error", :locals => {api_error: api_error, error_type: 'api'} %>