diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-06 11:02:12 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-12-06 11:02:12 +0100 |
commit | 40a118072d82dab27588b7907b26642e9212f969 (patch) | |
tree | 24d930b87cbcecabfa528dc520ffc84a23bc4c60 | |
parent | b1d6dd4c7479d01ac8b3392c55fb3c24dc18c4ae (diff) | |
download | gitlab-ce-40a118072d82dab27588b7907b26642e9212f969.tar.gz |
Remove unsued variable from merge request widget
-rw-r--r-- | app/views/projects/merge_requests/widget/_heading.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/merge_requests/widget/_heading.html.haml b/app/views/projects/merge_requests/widget/_heading.html.haml index 6d9b91ad0e7..9ab7971b56c 100644 --- a/app/views/projects/merge_requests/widget/_heading.html.haml +++ b/app/views/projects/merge_requests/widget/_heading.html.haml @@ -8,14 +8,13 @@ = link_to "##{@pipeline.id}", namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), class: 'pipeline' = ci_label_for_status(status) for - - commit = @merge_request.diff_head_commit = succeed "." do = link_to @pipeline.short_sha, namespace_project_commit_path(@merge_request.source_project.namespace, @merge_request.source_project, @pipeline.sha), class: "monospace" %span.ci-coverage - elsif @merge_request.has_ci? - # Compatibility with old CI integrations (ex jenkins) when you request status from CI server via AJAX - - # Remove in later versions when services like Jenkins will set CI status via Commit status API + - # TODO, remove in later versions when services like Jenkins will set CI status via Commit status API .mr-widget-heading - %w[success skipped canceled failed running pending].each do |status| .ci_widget{class: "ci-#{status}", style: "display:none"} |