From: radhika Date: Wed, 20 Aug 2014 21:37:17 +0000 (-0400) Subject: 3112: and it would help if that said partial is committed :) X-Git-Tag: 1.1.0~2266^2~26 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/28d5074cdf748cd4da9e98d6202925fdbbf678cc 3112: and it would help if that said partial is committed :) --- diff --git a/apps/workbench/app/views/application/_report_error.html.erb b/apps/workbench/app/views/application/_report_error.html.erb new file mode 100644 index 0000000000..f79a76905a --- /dev/null +++ b/apps/workbench/app/views/application/_report_error.html.erb @@ -0,0 +1,17 @@ +

+
If you suspect this is a bug, you can help us fix it by sending us a problem report:

+<% if api_error %> + 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), + {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 %> + 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), + {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 %> +<% support_email = Rails.configuration.support_email_address%> +

+ If you prefer email, send to: <%=support_email%> +

diff --git a/apps/workbench/app/views/application/report_issue_popup.js.erb b/apps/workbench/app/views/application/report_issue_popup.js.erb index 799a8812a0..93e9a5a840 100644 --- a/apps/workbench/app/views/application/report_issue_popup.js.erb +++ b/apps/workbench/app/views/application/report_issue_popup.js.erb @@ -28,14 +28,14 @@ $(document). var text = document.getElementById('report-issue-submit').firstChild; text.data = "Report sent"; $('div').remove('.modal-footer-status'); - $('.modal-footer').append(''); + $('.modal-footer').append(''); } }). on('ajax:failure', function() { var sendButton = document.getElementById('report-issue-submit'); if (sendButton && sendButton.disabled) { $('div').remove('.modal-footer-status'); - $('.modal-footer').append(''); + $('.modal-footer').append(''); var text = document.getElementById('report-issue-submit').firstChild; text.data = "Report issue"; sendButton.disabled = false;