X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9e01d65e64173caf29ef750c7d29c2b3d424c4ab..ef2572886ea8693f16316cbfe537053f106a2bb5:/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 a9e9b7ad30..f8edf7d40e 100644 --- a/apps/workbench/app/views/application/api_error.html.erb +++ b/apps/workbench/app/views/application/api_error.html.erb @@ -22,18 +22,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'} %>