diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-10-14 03:33:49 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-10-14 03:33:49 +0800 |
commit | 29a6f0d28ba4ca6c44b63d0ece2eff4416fb73e0 (patch) | |
tree | d296b4deeec0c51c4b1bf07fee45508125d5782f /app/views/notify/pipeline_success_email.html.haml | |
parent | 36aea928a407376787a961bbc03ca3946a55902b (diff) | |
download | gitlab-ce-29a6f0d28ba4ca6c44b63d0ece2eff4416fb73e0.tar.gz |
Introduce more GitLab routing helpers, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16852207
Diffstat (limited to 'app/views/notify/pipeline_success_email.html.haml')
-rw-r--r-- | app/views/notify/pipeline_success_email.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/notify/pipeline_success_email.html.haml b/app/views/notify/pipeline_success_email.html.haml index 81b32524fb2..0fdf118c9bc 100644 --- a/app/views/notify/pipeline_success_email.html.haml +++ b/app/views/notify/pipeline_success_email.html.haml @@ -92,7 +92,7 @@ %td{style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;padding-right:5px;"} %img{height: "13", src: image_url('mailers/ci_pipeline_notif_v1/icon-branch-gray.gif'), style: "display:block;", width: "13"}/ %td{style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;"} - %a.muted{href: namespace_project_commits_url(@project.namespace, @project, @pipeline.ref), style: "color:#333333;text-decoration:none;"} + %a.muted{href: commits_url(@pipeline), style: "color:#333333;text-decoration:none;"} = @pipeline.ref %tr %td{style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;color:#8c8c8c;font-weight:300;padding:14px 0;margin:0;border-top:1px solid #ededed;"} Commit @@ -103,7 +103,7 @@ %td{style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;padding-right:5px;"} %img{height: "13", src: image_url('mailers/ci_pipeline_notif_v1/icon-commit-gray.gif'), style: "display:block;", width: "13"}/ %td{style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;"} - %a{href: namespace_project_commit_url(@project.namespace, @project, @pipeline.sha), style: "color:#3084bb;text-decoration:none;"} + %a{href: commit_url(@pipeline), style: "color:#3084bb;text-decoration:none;"} = @pipeline.short_sha - if @merge_request in @@ -135,7 +135,7 @@ - build_count = @pipeline.statuses.latest.size - stage_count = @pipeline.stages.size Pipeline - %a{href: namespace_project_pipeline_url(@project.namespace, @project, @pipeline.id), style: "color:#3084bb;text-decoration:none;"} + %a{href: pipeline_url(@pipeline), style: "color:#3084bb;text-decoration:none;"} = "\##{@pipeline.id}" successfully completed = "#{build_count} #{'build'.pluralize(build_count)}" |