Commit 6ec3c3231d0262afe99cd94610bda1cb8669a568
1 parent
998a6982
Exists in
master
and in
1 other branch
Add deploy "message" to e-mail notifications
Showing
2 changed files
with
7 additions
and
0 deletions
Show diff stats
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) %> |