Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / application / _report_error.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <%
6    popup_params = {
7      popup_type: 'report',
8      current_location: request.url,
9      current_path: request.fullpath,
10      action_method: 'post',
11    }
12    if error_type == "api"
13      popup_params.merge!(
14        api_error_request_url: api_error.andand.request_url || "",
15        api_error_response: api_error.andand.api_response || "",
16      )
17    else
18      popup_params.merge!(error_message: error_message)
19    end
20 %>
21
22 <p>
23 <%= link_to(report_issue_popup_path(popup_params),
24             {class: 'btn btn-primary report-issue-modal-window', :remote => true, return_to: request.url}) do %>
25   <i class="fa fa-fw fa-support"></i> Report problem
26 <% end %>
27
28 or
29
30 <%= mail_to(Rails.configuration.Mail.SupportEmailAddress, "email us",
31             subject: "Workbench problem report",
32             body: "Problem while viewing page #{request.url}") %>
33
34 if you suspect this is a bug.
35 </p>