diff --git a/app/views/mailer/deploy_notification.html.haml b/app/views/mailer/deploy_notification.html.haml index 59795e8..b667715 100644 --- a/app/views/mailer/deploy_notification.html.haml +++ b/app/views/mailer/deploy_notification.html.haml @@ -19,10 +19,8 @@ %tr %td.content(valign="top") %div - %p.heading WHAT: - %p - - revision = @deploy.revision.present? ? content_tag(:span, "@#{@deploy.revision}", :class => "revision") : "" - = (@app.name + revision).html_safe + %p.heading REVISION: + %p= @deploy.revision %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 fc75387..fa1aac8 100644 --- a/app/views/mailer/deploy_notification.text.erb +++ b/app/views/mailer/deploy_notification.text.erb @@ -1,8 +1,17 @@ <%= @app.name %> was just deployed to <%= @deploy.environment %> by <%= @deploy.username %>. -Details: - What: <%= @app.name %><%= "@#{@deploy.revision}" unless @deploy.revision.blank? %> - When: <%= @deploy.created_at.to_s(:rfc822) %> - Repository: <%= @deploy.repository.blank? ? 'n/a' : @deploy.repository %> +REVISION: + +<%= @deploy.revision %> + + +WHEN: + +<%= @deploy.created_at.to_s(:rfc822) %> + + +REPOSITORY: + +<%= @deploy.repository.blank? ? 'n/a' : @deploy.repository %> -- libgit2 0.21.2