summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-08-08 16:26:33 -0500
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-08-16 15:29:00 -0500
commitbdbc3d355a86bf03e7a7a00fc2d867fa043c0bdd (patch)
treebd9ea4d5fb84bccdca21a86bd864374814830b4b
parentf7e08ad0de580e9f27ad5301542f2913c6bb2bff (diff)
downloadgitlab-ce-bdbc3d355a86bf03e7a7a00fc2d867fa043c0bdd.tar.gz
Add build data to top of pipeline page
-rw-r--r--app/assets/stylesheets/pages/pipelines.scss6
-rw-r--r--app/views/projects/commit/_pipeline.html.haml12
2 files changed, 18 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/pipelines.scss b/app/assets/stylesheets/pages/pipelines.scss
index 21919fe4d73..5bc8c3a7e6c 100644
--- a/app/assets/stylesheets/pages/pipelines.scss
+++ b/app/assets/stylesheets/pages/pipelines.scss
@@ -229,3 +229,9 @@
box-shadow: none;
}
}
+
+// Pipeline visualization
+.stage-column {
+ display: inline-block;
+ vertical-align: top;
+}
diff --git a/app/views/projects/commit/_pipeline.html.haml b/app/views/projects/commit/_pipeline.html.haml
index 640abdb993f..2452326fc04 100644
--- a/app/views/projects/commit/_pipeline.html.haml
+++ b/app/views/projects/commit/_pipeline.html.haml
@@ -1,4 +1,16 @@
.row-content-block.build-content.middle-block
+ .pipeline-visualization
+ - pipeline.statuses.stages.each do |stage|
+ - statuses = pipeline.statuses.where(stage: stage)
+ .stage-column
+ %strong
+ %a{name: stage}
+ - if stage
+ = stage.titleize
+ - statuses.each do |status|
+ %div= status.name
+
+
.pull-right
- if can?(current_user, :update_pipeline, pipeline.project)
- if pipeline.builds.latest.failed.any?(&:retryable?)