Connect top level tests to each other

This commit is contained in:
Annabel Dunstone 2016-08-08 17:42:28 -05:00
parent bdbc3d355a
commit dfe94da0fb
2 changed files with 61 additions and 5 deletions

View file

@ -231,7 +231,57 @@
} }
// Pipeline visualization // Pipeline visualization
.pipeline-visualization {
position: relative;
}
.stage-column { .stage-column {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
margin-right: 40px;
.stage-name {
margin-bottom: 15px;
font-weight: bold;
}
.builds-container {
}
.build {
border: 1px solid $border-color;
position: relative;
padding: 6px 10px;
border-radius: 30px;
width: 150px;
// TODO truncate text within .build div; not on build div itself
// white-space: nowrap;
// overflow: hidden;
// text-overflow: ellipsis;
margin-bottom: 10px;
svg {
position: relative;
top: 2px;
margin-right: 5px;
}
&:first-child {
&::after, &::before {
content: '';
position: absolute;
top: 50%;
right: -44px;
border-top: 1px solid $border-color;
width: 44px;
height: 1px;
}
}
&:first-child::before, &:last-child::after{
border: 0 none;
}
}
} }

View file

@ -1,16 +1,22 @@
.row-content-block.build-content.middle-block .row-content-block.white
.pipeline-visualization .pipeline-visualization
- pipeline.statuses.stages.each do |stage| - pipeline.statuses.stages.each do |stage|
- statuses = pipeline.statuses.where(stage: stage) - statuses = pipeline.statuses.where(stage: stage)
- status = statuses.latest.status
.stage-column .stage-column
%strong .stage-name
%a{name: stage} %a{name: stage}
- if stage - if stage
= stage.titleize = stage.titleize
- statuses.each do |status| .builds-container
%div= status.name - statuses.each do |build|
.build
%span{class: "ci-status-link ci-status-icon-#{status}"}
= ci_icon_for_status(status)
= build.name
.row-content-block.build-content.middle-block
.pull-right .pull-right
- if can?(current_user, :update_pipeline, pipeline.project) - if can?(current_user, :update_pipeline, pipeline.project)
- if pipeline.builds.latest.failed.any?(&:retryable?) - if pipeline.builds.latest.failed.any?(&:retryable?)