summaryrefslogtreecommitdiff
path: root/app/views/projects/commit
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-12-07 19:30:14 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-12-07 19:30:14 +0100
commit8842f55201ae4725b307336686f8ab168fa0effb (patch)
tree9fd3079231ad2258374e54e6ff26168e5809be43 /app/views/projects/commit
parent93c72e0f71919968972e874519e01370edcce022 (diff)
downloadgitlab-ce-8842f55201ae4725b307336686f8ab168fa0effb.tar.gz
Code review
Diffstat (limited to 'app/views/projects/commit')
-rw-r--r--app/views/projects/commit/_pipeline.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/commit/_pipeline.html.haml b/app/views/projects/commit/_pipeline.html.haml
index 4fc5e15592a..a677e859a15 100644
--- a/app/views/projects/commit/_pipeline.html.haml
+++ b/app/views/projects/commit/_pipeline.html.haml
@@ -25,7 +25,7 @@
= time_interval_in_words pipeline.duration
.row-content-block.build-content.middle-block.pipeline-graph.hidden
- = render "projects/pipelines/graph", subject: pipeline
+ = render "projects/pipelines/graph", subject: pipeline, as: :pipeline
- if pipeline.yaml_errors.present?
.bs-callout.bs-callout-danger
@@ -50,5 +50,4 @@
- if pipeline.project.build_coverage_enabled?
%th Coverage
%th
- - pipeline.stages.each do |stage|
- = render "projects/stage/stage", subject: stage
+ = render partial: "projects/stage/stage", collection: pipeline.stages, as: :stage