1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
6 generated_at = arvados_api_client.discovery[:generatedAt]
7 arvados_base = Rails.configuration.arvados_v1_base
8 support_email = Rails.configuration.support_email_address
11 additional_info['Current location'] = params[:current_location]
12 additional_info['User UUID'] = current_user.uuid if current_user
14 additional_info_str = additional_info.map {|k,v| "#{k}=#{v}"}.join("\n")
16 additional_info['api_source_version'] = api_source_version
17 additional_info['generated_at'] = generated_at
18 additional_info['workbench_version'] = AppVersion.hash
19 additional_info['arvados_base'] = arvados_base
20 additional_info['support_email'] = support_email
21 additional_info['error_message'] = params[:error_message] if params[:error_message]
22 additional_info['api_error_request_url'] = params[:api_error_request_url] if params[:api_error_request_url]
23 additional_info['api_error_response'] = params[:api_error_response] if params[:api_error_response]
27 <div class="modal-dialog modal-with-loading-spinner">
28 <div class="modal-content">
30 <%= form_tag report_issue_path, {name: 'report-issue-form', method: 'post',
31 class: 'form-horizontal'} do %>
34 title = 'Version / debugging info'
35 title = 'Report a problem' if params[:popup_type] == 'report'
38 <div class="modal-header">
39 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
41 <div class="col-sm-8"> <h4 class="modal-title"><%=title%></h4> </div>
42 <div class="spinner spinner-32px spinner-h-center col-sm-1" hidden="true"></div>
47 <div class="modal-body" style="height: 25em; overflow-y: scroll">
48 <div class="form-group">
49 <label for="support_email" class="col-sm-4 control-label"> Support email </label>
50 <div class="col-sm-8">
51 <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>
55 <div class="form-group">
56 <label for="current_page" class="col-sm-4 control-label"> Current page </label>
57 <div class="col-sm-8">
58 <p class="form-control-static text-overflow-ellipsis" name="current_page"><%=params[:current_path]%></a></p>
62 <% if params[:popup_type] == 'report' %>
63 <div class="form-group">
64 <label for="report_text_label" class="col-sm-4 control-label"> Describe the problem </label>
65 <div class="col-sm-8">
66 <textarea class="form-control" rows="4" id="report_issue_text" name="report_issue_text" type="text" placeholder="Describe the problem"/>
68 <input type="hidden" name="report_additional_info" value="<%=additional_info.to_json%>">
72 <div class="form-group">
73 <label for="wb_version" class="col-sm-4 control-label"> Workbench version </label>
74 <div class="col-sm-8">
75 <p class="form-control-static" name="wb_version">
76 <%= link_to AppVersion.hash, version_link_target(AppVersion.hash) %>
81 <div class="form-group">
82 <label for="server_version" class="col-sm-4 control-label"> API version </label>
83 <div class="col-sm-8">
84 <p class="form-control-static" name="server_version">
85 <%= link_to api_source_version, version_link_target(api_source_version) %>
90 <div class="form-group">
91 <label for="generated_at" class="col-sm-4 control-label"> API startup time </label>
92 <div class="col-sm-8">
93 <p class="form-control-static" name="generated_at"><%=generated_at%></p>
97 <div class="form-group">
98 <label for="arvados_base" class="col-sm-4 control-label"> API address </label>
99 <div class="col-sm-8">
100 <p class="form-control-static" name="arvados_base"><%=arvados_base%></p>
104 <% if current_user %>
105 <div class="form-group">
106 <label for="user_uuid" class="col-sm-4 control-label"> User UUID </label>
107 <div class="col-sm-8">
108 <p class="form-control-static" name="user_uuid"><%=current_user.uuid%></p>
113 <% if params[:error_message] %>
114 <div class="form-group">
115 <label for="error_message" class="col-sm-4 control-label"> Error message </label>
116 <div class="col-sm-8">
117 <p class="form-control-static text-overflow-ellipsis" name="error_message"><%=params[:error_message]%></p>
122 <% if params[:api_error_request_url] %>
123 <div class="form-group">
124 <label for="api_error_url" class="col-sm-4 control-label"> API error request URL </label>
125 <div class="col-sm-8">
126 <p class="form-control-static text-overflow-ellipsis" name="api_error_url"><%=params[:api_error_request_url]%></p>
131 <% if params[:api_error_response] %>
132 <div class="form-group">
133 <label for="api_error_response" class="col-sm-4 control-label"> API error response </label>
134 <div class="col-sm-8">
135 <p class="form-control-static text-overflow-ellipsis" name="api_error_response"><%=params[:api_error_response]%></p>
141 <div class="modal-footer">
142 <% if params[:popup_type] == 'report' %>
143 <button class="btn btn-default report-issue-cancel" id="report-issue-cancel" data-dismiss="modal" aria-hidden="true">Cancel</button>
144 <button type="submit" id="report-issue-submit" class="btn btn-primary report-issue-submit" autofocus>Send problem report</button>
146 <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>