-Issue reported by user <%=@user.full_name%> <%=@user.email%>
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
+<% if @user %>
+Issue reported by user <%=@user.email%>
+<% else %>
+Issue reported
+<% end %>
Details of the report:
-<% @params.each do |k, v| %>
- <% if k.start_with? 'report_' %>
- <% if k.start_with? 'report_additional_info' %>
- <% json_map = JSON.parse(v).map %>
- <% map_to_s = json_map.map {|k,v| "#{k}=#{v}"}.join("\n") %>
+<% if @params['report_additional_info'] %>
+<% map_to_s = JSON.parse(@params['report_additional_info']).map {|k,v| "#{k}=#{v}"}.join("\n") %>
<%= map_to_s %>
- <% else %>
-<%= k %>=<%= v %>
- <% end %>
- <% end %>
<% end %>
+Report text=<%=@params['report_issue_text'] %>