Merge branch 'master' into 3112-report-bug
[arvados.git] / apps / workbench / app / views / issue_reporter / send_report.text.erb
index 9afd1d2252a1c3d9be78175721f242ecd8d0817f..4cbb371ca1d0c4911cb53f5841698598c9af586a 100644 (file)
@@ -1,7 +1,13 @@
+<% if @user %>
 Issue reported by user <%=@user.full_name%> <%=@user.email%>
+<% else %>
+Issue reported
+<% end %>
 
 Details of the report:
+<% if @params['report_additional_info'] %>
 <% json_map = JSON.parse(@params['report_additional_info']).map %>
 <%  map_to_s = json_map.map {|k,v| "#{k}=#{v}"}.join("\n") %>
 <%= map_to_s %>
-Report text=<%=@params['report_text'] %>
+<% end %>
+Report text=<%=@params['report_issue_text'] %>