From 1ec24d914c7701c0b98e1beb3f8b8e6b33252c1b Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Tue, 5 Mar 2013 19:24:05 +1300 Subject: [PATCH] Added user agent to notification emails --- app/views/mailer/err_notification.html.haml | 3 +++ app/views/mailer/err_notification.text.erb | 5 +++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/app/views/mailer/err_notification.html.haml b/app/views/mailer/err_notification.html.haml index ed9a4ea..5b5f878 100644 --- a/app/views/mailer/err_notification.html.haml +++ b/app/views/mailer/err_notification.html.haml @@ -34,6 +34,9 @@ %p.monospace - if @notice.request['url'].present? = link_to @notice.request['url'], @notice.request['url'] + %p.heading BROWSER: + %p.monospace + = user_agent_graph(@notice.problem) %p.heading BACKTRACE: - @notice.backtrace_lines.each do |line| %p.backtrace= line diff --git a/app/views/mailer/err_notification.text.erb b/app/views/mailer/err_notification.text.erb index f9c1caa..a6c3442 100644 --- a/app/views/mailer/err_notification.text.erb +++ b/app/views/mailer/err_notification.text.erb @@ -24,6 +24,11 @@ URL: <%= @notice.request['url'] %> +BROWSER: + +<%= @notice.user_agent_string %> + + BACKTRACE: <% @notice.backtrace_lines.each do |line| %> -- libgit2 0.21.2