Skip to content
Snippets Groups Projects
Commit 556ea04f authored by Valery Sizov's avatar Valery Sizov
Browse files

Merge branch 'email_templates' into 'master'

Improved email templates

Fixes https://dev.gitlab.org/gitlab/gitlab-ci/issues/215

See merge request !95
parents f9334fc3 9bf4a23d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -9,6 +9,7 @@ v7.11.0
- Add a GitLab project path parameter to the project API
- Remove projects IDs from dashboard
- UI fix: Remove page headers from the admin area
- Improve Email templates
 
v7.10.1
- Fix failing migration when update to 7.10 from 7.8 and older versions
Loading
Loading
Loading
Loading
@@ -2,6 +2,7 @@ class Notify < ActionMailer::Base
include Emails::Builds
 
add_template_helper ApplicationHelper
add_template_helper GitlabHelper
 
default_url_options[:host] = GitlabCi.config.gitlab_ci.host
default_url_options[:protocol] = GitlabCi.config.gitlab_ci.protocol
Loading
Loading
Loading
Loading
@@ -2,14 +2,12 @@
%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
Project:
= link_to project_url(@project) do
= @project.name
 
%p
Status: #{@build.status}
%p
Commit: #{@build.commit.short_sha}
Commit link: #{gitlab_commit_link(@project, @build.commit.short_sha)}
%p
Author: #{@build.commit.git_author_name}
%p
Loading
Loading
@@ -18,4 +16,4 @@
Message: #{@build.commit.git_commit_message}
 
%p
Url: #{link_to @build.short_sha, project_build_url(@build.project, @build)}
Url: #{link_to @build.short_sha, project_build_url(@project, @build)}
Loading
Loading
@@ -3,14 +3,12 @@
GitLab CI (build successful)
 
%h3
Build successful for
Project:
= link_to project_url(@project) do
= @project.name
 
%p
Status: #{@build.status}
%p
Commit: #{@build.commit.short_sha}
Commit link: #{gitlab_commit_link(@project, @build.commit.short_sha)}
%p
Author: #{@build.commit.git_author_name}
%p
Loading
Loading
@@ -19,4 +17,4 @@
Message: #{@build.commit.git_commit_message}
 
%p
Url: #{link_to @build.short_sha, project_build_url(@build.project, @build)}
Url: #{link_to @build.short_sha, project_build_url(@project, @build)}
Loading
Loading
@@ -18,7 +18,7 @@ describe Notify do
end
 
it 'contains name of project' do
should have_body_text /Build successful/
should have_body_text /build successful/
end
end
 
Loading
Loading
@@ -30,7 +30,7 @@ describe Notify do
end
 
it 'contains name of project' do
should have_body_text /Build failed/
should have_body_text /build failed/
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment