2 api_version = arvados_api_client.discovery[:source_version]
3 generated_at = arvados_api_client.discovery[:generatedAt]
4 wb_version = Rails.configuration.source_version
5 wb_version += Rails.configuration.local_modified if Rails.configuration.local_modified
6 arvados_base = Rails.configuration.arvados_v1_base
7 support_email = Rails.configuration.support_email_address
10 additional_info['Current location'] = params[:current_location]
11 additional_info['User UUID'] = current_user.uuid if current_user
13 additional_info_str = additional_info.map {|k,v| "#{k}=#{v}"}.join("\n")
15 additional_info['api_version'] = api_version
16 additional_info['generated_at'] = generated_at
17 additional_info['workbench_version'] = wb_version
18 additional_info['arvados_base'] = arvados_base
19 additional_info['support_email'] = support_email
20 additional_info['error_message'] = params[:error_message] if params[:error_message]
21 additional_info['api_error_request_url'] = params[:api_error_request_url] if params[:api_error_request_url]
22 additional_info['api_error_response'] = params[:api_error_response] if params[:api_error_response]
26 <div class="modal-dialog modal-with-loading-spinner">
27 <div class="modal-content">
29 <%= form_tag report_issue_path, {name: 'report-issue-form', method: 'post',
30 class: 'form-horizontal', remote: true} do %>
33 title = 'Version / debugging info'
34 title = 'Report a problem' if params[:popup_type] == 'report'
37 <div class="modal-header">
38 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
40 <div class="col-sm-8"> <h4 class="modal-title"><%=title%></h4> </div>
41 <div class="spinner spinner-32px spinner-h-center col-sm-1" hidden="true"></div>
46 <div class="modal-body" style="height: 25em; overflow-y: scroll">
47 <div class="form-group">
48 <label for="support_email" class="col-sm-4 control-label"> Support email </label>
49 <div class="col-sm-8">
50 <p class="form-control-static" name="support_version"><a href="mailto:<%=support_email%>?subject=Workbench problem report&body=Problem while viewing page <%=params[:current_location]%>"><%=support_email%></a></p>
54 <div class="form-group">
55 <label for="current_page" class="col-sm-4 control-label"> Current page </label>
56 <div class="col-sm-8">
57 <p class="form-control-static text-overflow-ellipsis" name="current_page"><%=params[:current_path]%></a></p>
61 <% if params[:popup_type] == 'report' %>
62 <div class="form-group">
63 <label for="report_text_label" class="col-sm-4 control-label"> Describe the problem </label>
64 <div class="col-sm-8">
65 <textarea class="form-control" rows="4" id="report_issue_text" name="report_issue_text" type="text"/>
67 <input type="hidden" name="report_additional_info" value="<%=additional_info.to_json%>">
71 <div class="form-group">
72 <label for="wb_version" class="col-sm-4 control-label"> Workbench version </label>
73 <div class="col-sm-8">
74 <p class="form-control-static" name="wb_version"><%=wb_version%></p>
78 <div class="form-group">
79 <label for="server_version" class="col-sm-4 control-label"> API version </label>
80 <div class="col-sm-8">
81 <p class="form-control-static" name="server_version"><%=api_version%></p>
85 <div class="form-group">
86 <label for="generated_at" class="col-sm-4 control-label"> API startup time </label>
87 <div class="col-sm-8">
88 <p class="form-control-static" name="generated_at"><%=generated_at%></p>
92 <div class="form-group">
93 <label for="arvados_base" class="col-sm-4 control-label"> API address </label>
94 <div class="col-sm-8">
95 <p class="form-control-static" name="arvados_base"><%=arvados_base%></p>
100 <div class="form-group">
101 <label for="user_uuid" class="col-sm-4 control-label"> User UUID </label>
102 <div class="col-sm-8">
103 <p class="form-control-static" name="user_uuid"><%=current_user.uuid%></p>
108 <% if params[:error_message] %>
109 <div class="form-group">
110 <label for="error_message" class="col-sm-4 control-label"> Error message </label>
111 <div class="col-sm-8">
112 <p class="form-control-static text-overflow-ellipsis" name="error_message"><%=params[:error_message]%></p>
117 <% if params[:api_error_request_url] %>
118 <div class="form-group">
119 <label for="api_error_url" class="col-sm-4 control-label"> API error request URL </label>
120 <div class="col-sm-8">
121 <p class="form-control-static text-overflow-ellipsis" name="api_error_url"><%=params[:api_error_request_url]%></p>
126 <% if params[:api_error_response] %>
127 <div class="form-group">
128 <label for="api_error_response" class="col-sm-4 control-label"> API error response </label>
129 <div class="col-sm-8">
130 <p class="form-control-static text-overflow-ellipsis" name="api_error_response"><%=params[:api_error_response]%></p>
136 <div class="modal-footer">
137 <% if params[:popup_type] == 'report' %>
138 <button class="btn btn-default report-issue-cancel" id="report-issue-cancel" data-dismiss="modal" aria-hidden="true">Cancel</button>
139 <button type="submit" id="report-issue-submit" class="btn btn-primary report-issue-submit" autofocus>Send problem report</button>
141 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>