8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / application / _report_error.html.erb
1 <%
2    popup_params = {
3      popup_type: 'report',
4      current_location: request.url,
5      current_path: request.fullpath,
6      action_method: 'post',
7    }
8    if error_type == "api"
9      popup_params.merge!(
10        api_error_request_url: api_error.andand.request_url || "",
11        api_error_response: api_error.andand.api_response || "",
12      )
13    else
14      popup_params.merge!(error_message: error_message)
15    end
16 %>
17
18 <p>
19 <%= link_to(report_issue_popup_path(popup_params),
20             {class: 'btn btn-primary report-issue-modal-window', :remote => true, return_to: request.url}) do %>
21   <i class="fa fa-fw fa-support"></i> Report problem
22 <% end %>
23
24 or
25
26 <%= mail_to(Rails.configuration.support_email_address, "email us",
27             subject: "Workbench problem report",
28             body: "Problem while viewing page #{request.url}") %>
29
30 if you suspect this is a bug.
31 </p>