From 806781c0f83d2060495b0aa225a4e00d07c41997 Mon Sep 17 00:00:00 2001 From: Spencer Oberstadt Date: Wed, 4 Dec 2013 18:48:01 -0600 Subject: [PATCH] add app version to email notifications --- app/views/mailer/err_notification.html.haml | 5 +++++ app/views/mailer/err_notification.text.erb | 5 +++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/app/views/mailer/err_notification.html.haml b/app/views/mailer/err_notification.html.haml index ad94c51..7c25664 100644 --- a/app/views/mailer/err_notification.html.haml +++ b/app/views/mailer/err_notification.html.haml @@ -32,6 +32,11 @@ = link_to_source_file(line) do = line.to_s %br + - if @notice.app_version.present? + %p.heading APP VERSION: + %p.monospace + = @notice.app_version + %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 0ce0279..e517dd9 100644 --- a/app/views/mailer/err_notification.text.erb +++ b/app/views/mailer/err_notification.text.erb @@ -18,6 +18,11 @@ WHERE: <%= line %> <% end %> +<%- if @notice.app_version.present? %> +APP VERSION: + +<%= @notice.app_version %> +<%- end %> URL: -- libgit2 0.21.2