Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / apps / workbench / app / views / application / _report_error.html.erb
1 <p>
2 <br/><strong>If you suspect this is a bug, you can help us fix it by sending us a problem report:</strong><br/><br/>
3 <% if error_type == 'api' %>
4   <%
5     api_request_url = api_error.andand.request_url ? api_error.request_url : ''
6     api_error_response = api_error.andand.api_response ? api_error.api_response : ''
7   %>
8   Send a problem report right here. <%= link_to report_issue_popup_path(popup_type: 'report', current_location: request.url, current_path: request.fullpath, action_method: 'post', api_error_request_url: api_request_url, api_error_response: api_error_response),
9         {class: 'btn btn-primary report-issue-modal-window', :remote => true, return_to: request.url} do %>
10         <i class="fa fa-fw fa-support"></i> Report problem
11   <% end %>
12 <% else %>
13   Send a problem report right here. <%= link_to report_issue_popup_path(popup_type: 'report', current_location: request.url, current_path: request.fullpath, action_method: 'post', error_message: error_message),
14         {class: 'btn btn-primary report-issue-modal-window', :remote => true, return_to: request.url} do %>
15         <i class="fa fa-fw fa-support"></i> Report problem
16   <% end %>
17 <% end %>
18 <% support_email = Rails.configuration.support_email_address%>
19 <br/><br/>
20   If you prefer, send email to: <a href="mailto:<%=support_email%>?subject=Workbench problem report&amp;body=Problem while viewing page <%=request.url%>"><%=support_email%></a>
21 </p>