From c895093add54cf16db36d0237570e8f27eb666f2 Mon Sep 17 00:00:00 2001 From: Matt Clements Date: Thu, 18 Jun 2015 20:01:51 +0100 Subject: [PATCH] #870 App Server not in notification email --- app/views/mailer/err_notification.html.haml | 6 ++++++ app/views/mailer/err_notification.text.erb | 6 ++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/app/views/mailer/err_notification.html.haml b/app/views/mailer/err_notification.html.haml index 6ef7025..074ad22 100644 --- a/app/views/mailer/err_notification.html.haml +++ b/app/views/mailer/err_notification.html.haml @@ -37,6 +37,12 @@ %p.monospace = @notice.app_version %br + %br + - if @notice.server_environment.present? && @notice.server_environment["hostname"].present? + %p.heading APP SERVER: + %p.monospace + = @notice.server_environment["hostname"] + %br %p.heading URL: %p.monospace - if @notice.request['url'].present? diff --git a/app/views/mailer/err_notification.text.erb b/app/views/mailer/err_notification.text.erb index 7d69ac3..90aae85 100644 --- a/app/views/mailer/err_notification.text.erb +++ b/app/views/mailer/err_notification.text.erb @@ -24,6 +24,12 @@ APP VERSION: <%= @notice.app_version %> <%- end %> +<%- if @notice.server_environment.present? && @notice.server_environment["hostname"].present? %> +APP SERVER: + +<%= @notice.server_environment["hostname"] %> +<%- end %> + URL: <%= @notice.request['url'] %> -- libgit2 0.21.2