diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-10-13 01:43:23 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-10-13 01:45:46 +0800 |
commit | 16e6431c83af0a3c862a0e306f1810774033a6bb (patch) | |
tree | dc047cb61829f0ac19e3a7543a6772122c513065 /app/views/notify/pipeline_success_email.text.erb | |
parent | c33e2f0ae923a5f84218a47ef111a1bc87cbb27f (diff) | |
download | gitlab-ce-16e6431c83af0a3c862a0e306f1810774033a6bb.tar.gz |
Use helpers from GitlabRoutingHelper, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16832930
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16832936
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16833033
Diffstat (limited to 'app/views/notify/pipeline_success_email.text.erb')
-rw-r--r-- | app/views/notify/pipeline_success_email.text.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/notify/pipeline_success_email.text.erb b/app/views/notify/pipeline_success_email.text.erb index 29b290d9704..15f22905bc6 100644 --- a/app/views/notify/pipeline_success_email.text.erb +++ b/app/views/notify/pipeline_success_email.text.erb @@ -1,9 +1,9 @@ Your pipeline has passed. -Project: <%= @project.name %> ( <%= namespace_project_url(@project.namespace, @project) %> ) +Project: <%= @project.name %> ( <%= project_url(@project) %> ) Branch: <%= @pipeline.ref %> ( <%= namespace_project_commits_url(@project.namespace, @project, @pipeline.ref) %> ) <% if @merge_request -%> -Merge Request: <%= @merge_request.to_reference %> ( <%= namespace_project_merge_request_url(@project.namespace, @project, @merge_request) %> ) +Merge Request: <%= @merge_request.to_reference %> ( <%= merge_request_url(@merge_request) %> ) <% end -%> Commit: <%= @pipeline.short_sha %> ( <%= namespace_project_commit_url(@project.namespace, @project, @pipeline.sha) %> ) |