Commit fdd0897889bae20bc805e43c86fc4ae01e94e5a9

Authored by Stephen Crosby
2 parents 998a6982 6ec3c323
Exists in master and in 1 other branch production

Merge pull request #896 from warrenguy/add_deploy_message_to_emails

Add deploy "message" to e-mail notifications
app/views/mailer/deploy_notification.html.haml
@@ -21,6 +21,8 @@ @@ -21,6 +21,8 @@
21 %div 21 %div
22 %p.heading REVISION: 22 %p.heading REVISION:
23 %p= @deploy.revision 23 %p= @deploy.revision
  24 + %p.heading MESSAGE:
  25 + %p= @deploy.message.blank? ? 'n/a' : @deploy.message
24 %p.heading WHEN: 26 %p.heading WHEN:
25 %p= @deploy.created_at.to_s(:rfc822) 27 %p= @deploy.created_at.to_s(:rfc822)
26 %p.heading REPOSITORY: 28 %p.heading REPOSITORY:
app/views/mailer/deploy_notification.text.erb
@@ -6,6 +6,11 @@ REVISION: @@ -6,6 +6,11 @@ REVISION:
6 <%= @deploy.revision %> 6 <%= @deploy.revision %>
7 7
8 8
  9 +MESSAGE:
  10 +
  11 +<%= @deploy.message.blank? ? 'n/a' : @deploy.message %>
  12 +
  13 +
9 WHEN: 14 WHEN:
10 15
11 <%= @deploy.created_at.to_s(:rfc822) %> 16 <%= @deploy.created_at.to_s(:rfc822) %>