diff options
-rw-r--r-- | app/views/layouts/notify.html.haml | 10 | ||||
-rw-r--r-- | app/views/notify/build_fail_email.html.haml | 5 | ||||
-rw-r--r-- | app/views/notify/build_success_email.html.haml | 6 |
3 files changed, 11 insertions, 10 deletions
diff --git a/app/views/layouts/notify.html.haml b/app/views/layouts/notify.html.haml index d3882e7..270b206 100644 --- a/app/views/layouts/notify.html.haml +++ b/app/views/layouts/notify.html.haml @@ -5,15 +5,9 @@ GitLab CI %body - %h1{style: "background: #228899; color: #FFF; font: normal 20px Helvetica, Arial, sans-serif; margin: 0; padding: 5px 10px; line-height: 32px; font-size: 16px;"} - GitLab CI - %table{align: "left", border: "0", cellpadding: "0", cellspacing: "0", style: "padding: 10px 0;", width: "100%"} - - if @project - %tr - %td{align: "left", style: "margin: 0; padding: 10px;"} - = link_to @project.name, project_url(@project), style: 'color: #29B; text-decoration: none' - %br + = yield :header + %table{align: "left", border: "0", cellpadding: "0", cellspacing: "0", style: "padding: 10px 0;", width: "100%"} %tr %td{align: "left", style: "margin: 0; padding: 10px;"} = yield diff --git a/app/views/notify/build_fail_email.html.haml b/app/views/notify/build_fail_email.html.haml index 5937e5f..fc1f7e1 100644 --- a/app/views/notify/build_fail_email.html.haml +++ b/app/views/notify/build_fail_email.html.haml @@ -1,4 +1,7 @@ -%p +- content_for :header do + %h1{style: "background: #c40834; color: #FFF; font: normal 20px Helvetica, Arial, sans-serif; margin: 0; padding: 5px 10px; line-height: 32px; font-size: 16px;"} + GitLab CI (build failed) +%h3 Build failed for = link_to project_url(@project) do = @project.name diff --git a/app/views/notify/build_success_email.html.haml b/app/views/notify/build_success_email.html.haml index 5575c98..1ae293d 100644 --- a/app/views/notify/build_success_email.html.haml +++ b/app/views/notify/build_success_email.html.haml @@ -1,4 +1,8 @@ -%p +- content_for :header do + %h1{style: "background: #38CF5B; color: #FFF; font: normal 20px Helvetica, Arial, sans-serif; margin: 0; padding: 5px 10px; line-height: 32px; font-size: 16px;"} + GitLab CI (build successful) + +%h3 Build successful for = link_to project_url(@project) do = @project.name |