diff --git a/app/views/mailer/err_notification.html.haml b/app/views/mailer/err_notification.html.haml index 1cc4068..37bd6aa 100644 --- a/app/views/mailer/err_notification.html.haml +++ b/app/views/mailer/err_notification.html.haml @@ -40,6 +40,14 @@ %p.monospace = user_agent_graph(@notice.problem) %br + - if @notice.user_attributes.present? + %p.heading USER: + %table + - @notice.user_attributes.each do |key, value| + %tr + %td(style="text-align: right; padding-right: 10px; color: #6a6a6a;")= key.to_s.titleize + ":" + %td= auto_link(value.to_s) + %br %p.heading FULL BACKTRACE: - @notice.backtrace_lines.each do |line| %p.backtrace diff --git a/app/views/mailer/err_notification.text.erb b/app/views/mailer/err_notification.text.erb index a6c3442..0ce0279 100644 --- a/app/views/mailer/err_notification.text.erb +++ b/app/views/mailer/err_notification.text.erb @@ -29,6 +29,15 @@ BROWSER: <%= @notice.user_agent_string %> +<%- if @notice.user_attributes.present? %> +USER: + +<%- @notice.user_attributes.each do |key, value| %> +<%= key.to_s.titleize %>: <%= value.to_s %> +<%- end %> + +<%- end %> + BACKTRACE: <% @notice.backtrace_lines.each do |line| %> -- libgit2 0.21.2