3112: and it would help if that said partial is committed :)
[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 api_error %>
4   Send a problem report right here. <%= link_to report_issue_popup_path(popup_type: 'report', current_location: request.url, action_method: 'post', api_error_request_url: api_error.request_url, api_error_response: api_error.api_response_s),
5         {class: 'btn btn-primary report-issue-modal-window', 'data-toggle' =>  "modal", 'data-target' => '#report-issue-modal-window', :remote => true, return_to: request.url} do %>
6         <i class="fa fa-fw fa-support"></i> Report problem
7   <% end %>
8 <% else %>
9   Send a problem report right here. <%= link_to report_issue_popup_path(popup_type: 'report', current_location: request.url, action_method: 'post', error_message: error_message),
10         {class: 'btn btn-primary report-issue-modal-window', 'data-toggle' =>  "modal", 'data-target' => '#report-issue-modal-window', :remote => true, return_to: request.url} do %>
11         <i class="fa fa-fw fa-support"></i> Report problem
12   <% end %>
13 <% end %>
14 <% support_email = Rails.configuration.support_email_address%>
15 <br/></br>
16   If you prefer email, send to: <a href="mailto:<%=support_email%>?subject=Workbench problem report&body=Problem while viewing page <%=request.url%>"><%=support_email%></a>
17 </p>