From 6ec3c3231d0262afe99cd94610bda1cb8669a568 Mon Sep 17 00:00:00 2001 From: Warren Guy Date: Thu, 4 Jun 2015 16:41:27 +0100 Subject: [PATCH] Add deploy "message" to e-mail notifications --- app/views/mailer/deploy_notification.html.haml | 2 ++ app/views/mailer/deploy_notification.text.erb | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/app/views/mailer/deploy_notification.html.haml b/app/views/mailer/deploy_notification.html.haml index b667715..6338bea 100644 --- a/app/views/mailer/deploy_notification.html.haml +++ b/app/views/mailer/deploy_notification.html.haml @@ -21,6 +21,8 @@ %div %p.heading REVISION: %p= @deploy.revision + %p.heading MESSAGE: + %p= @deploy.message.blank? ? 'n/a' : @deploy.message %p.heading WHEN: %p= @deploy.created_at.to_s(:rfc822) %p.heading REPOSITORY: diff --git a/app/views/mailer/deploy_notification.text.erb b/app/views/mailer/deploy_notification.text.erb index fa1aac8..f00c0fb 100644 --- a/app/views/mailer/deploy_notification.text.erb +++ b/app/views/mailer/deploy_notification.text.erb @@ -6,6 +6,11 @@ REVISION: <%= @deploy.revision %> +MESSAGE: + +<%= @deploy.message.blank? ? 'n/a' : @deploy.message %> + + WHEN: <%= @deploy.created_at.to_s(:rfc822) %> -- libgit2 0.21.2