9587: sort the trash page rows by trash_at timestamp
[arvados.git] / apps / workbench / app / views / issue_reporter / send_report.text.erb
index a63869d2bbd3f02299b8883ed9beb0703f1a5967..28841b014c233afc74a26178e27397c38002f1c2 100644 (file)
@@ -1,2 +1,12 @@
-Issue reported by user <%=@user.full_name%> <%=@user.email%>
-Details of the report: <%=@data.inspect%>
+<% if @user %>
+Issue reported by user <%=@user.email%>
+<% else %>
+Issue reported
+<% end %>
+
+Details of the report:
+<% if @params['report_additional_info'] %>
+<%  map_to_s = JSON.parse(@params['report_additional_info']).map {|k,v| "#{k}=#{v}"}.join("\n") %>
+<%= map_to_s %>
+<% end %>
+Report text=<%=@params['report_issue_text'] %>