Commit 2c00d00e authored by Jacob Schatz's avatar Jacob Schatz

Merge branch '19991-triggered-pipeline' into 'master'

Triggered pipelines

#### What does this MR do?
Separates trigger into its own column

#### Screenshots (if relevant)
![Screen_Shot_2016-10-07_at_4.21.54_PM](/uploads/092e8205d329b66b34045fe17c5e6e4f/Screen_Shot_2016-10-07_at_4.21.54_PM.png)
![Screen_Shot_2016-10-17_at_9.13.10_AM](/uploads/7df90e0e2a07a9f282df3605787d3cc2/Screen_Shot_2016-10-17_at_9.13.10_AM.png)
![Screen_Shot_2016-10-17_at_9.15.07_AM](/uploads/b7dc0307c8549e72c3f812c3cd91833a/Screen_Shot_2016-10-17_at_9.15.07_AM.png)

#### What are the relevant issue numbers?
Closes #19991

See merge request !6753
parents 60c08db1 4e386a2c
...@@ -23,10 +23,17 @@ ...@@ -23,10 +23,17 @@
.table.ci-table { .table.ci-table {
min-width: 1200px; min-width: 1200px;
.branch-commit { .pipeline-id {
width: 33%; color: $black;
} }
.branch-commit {
width: 30%;
.branch-name {
width: 195px
}
}
} }
} }
...@@ -92,6 +99,15 @@ ...@@ -92,6 +99,15 @@
} }
} }
.avatar {
margin-left: 0;
float: none;
}
.api {
color: $code-color;
}
.branch-commit { .branch-commit {
.branch-name { .branch-name {
...@@ -119,7 +135,6 @@ ...@@ -119,7 +135,6 @@
.commit-id { .commit-id {
color: $gl-link-color; color: $gl-link-color;
margin-right: 8px;
} }
.commit-title { .commit-title {
...@@ -130,10 +145,6 @@ ...@@ -130,10 +145,6 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.avatar {
margin-left: 0;
}
.label { .label {
margin-right: 4px; margin-right: 4px;
} }
...@@ -149,17 +160,11 @@ ...@@ -149,17 +160,11 @@
.icon-container { .icon-container {
display: inline-block; display: inline-block;
text-align: right; width: 10px;
width: 15px;
.fa {
position: relative;
right: 3px;
}
svg { &.commit-icon {
position: relative; width: 15px;
right: 1px; text-align: center;
} }
} }
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
= link_to build.ref, namespace_project_commits_path(build.project.namespace, build.project, build.ref), class: "monospace branch-name" = link_to build.ref, namespace_project_commits_path(build.project.namespace, build.project, build.ref), class: "monospace branch-name"
- else - else
.light none .light none
.icon-container .icon-container.commit-icon
= custom_icon("icon_commit") = custom_icon("icon_commit")
- if commit_sha - if commit_sha
......
...@@ -9,17 +9,15 @@ ...@@ -9,17 +9,15 @@
= ci_icon_for_status(status) = ci_icon_for_status(status)
- else - else
= ci_status_with_icon(status) = ci_status_with_icon(status)
%td.branch-commit
%td
= link_to namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline.id) do = link_to namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline.id) do
%span ##{pipeline.id} %span.pipeline-id ##{pipeline.id}
- if pipeline.ref && show_branch %span by
.icon-container - if pipeline.user
= pipeline.tag? ? icon('tag') : icon('code-fork') = user_avatar(user: pipeline.user, size: 20)
= link_to pipeline.ref, namespace_project_commits_path(pipeline.project.namespace, pipeline.project, pipeline.ref), class: "monospace branch-name" - else
- if show_commit %span.api.monospace API
.icon-container
= custom_icon("icon_commit")
= link_to pipeline.short_sha, namespace_project_commit_path(pipeline.project.namespace, pipeline.project, pipeline.sha), class: "commit-id monospace"
- if pipeline.latest? - if pipeline.latest?
%span.label.label-success.has-tooltip{ title: 'Latest build for this branch' } latest %span.label.label-success.has-tooltip{ title: 'Latest build for this branch' } latest
- if pipeline.triggered? - if pipeline.triggered?
...@@ -29,6 +27,16 @@ ...@@ -29,6 +27,16 @@
- if pipeline.builds.any?(&:stuck?) - if pipeline.builds.any?(&:stuck?)
%span.label.label-warning stuck %span.label.label-warning stuck
%td.branch-commit
- if pipeline.ref && show_branch
.icon-container
= pipeline.tag? ? icon('tag') : icon('code-fork')
= link_to pipeline.ref, namespace_project_commits_path(pipeline.project.namespace, pipeline.project, pipeline.ref), class: "monospace branch-name"
- if show_commit
.icon-container.commit-icon
= custom_icon("icon_commit")
= link_to pipeline.short_sha, namespace_project_commit_path(pipeline.project.namespace, pipeline.project, pipeline.sha), class: "commit-id monospace"
%p.commit-title %p.commit-title
- if commit = pipeline.commit - if commit = pipeline.commit
= author_avatar(commit, size: 20) = author_avatar(commit, size: 20)
...@@ -36,7 +44,6 @@ ...@@ -36,7 +44,6 @@
- else - else
Cant find HEAD commit for this branch Cant find HEAD commit for this branch
- stages_status = pipeline.statuses.relevant.latest.stages_status - stages_status = pipeline.statuses.relevant.latest.stages_status
%td.stage-cell %td.stage-cell
- stages.each do |stage| - stages.each do |stage|
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
%tbody %tbody
%th Status %th Status
%th Pipeline %th Pipeline
%th Commit
%th Stages %th Stages
%th %th
%th %th
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.icon-container .icon-container
= deployment.tag? ? icon('tag') : icon('code-fork') = deployment.tag? ? icon('tag') : icon('code-fork')
= link_to deployment.ref, namespace_project_commits_path(@project.namespace, @project, deployment.ref), class: "monospace branch-name" = link_to deployment.ref, namespace_project_commits_path(@project.namespace, @project, deployment.ref), class: "monospace branch-name"
.icon-container .icon-container.commit-icon
= custom_icon("icon_commit") = custom_icon("icon_commit")
= link_to deployment.short_sha, namespace_project_commit_path(@project.namespace, @project, deployment.sha), class: "commit-id monospace" = link_to deployment.short_sha, namespace_project_commit_path(@project.namespace, @project, deployment.sha), class: "commit-id monospace"
......
...@@ -45,11 +45,12 @@ ...@@ -45,11 +45,12 @@
.table-holder .table-holder
%table.table.ci-table %table.table.ci-table
%thead %thead
%th.col-xs-1.col-sm-1 Status %th Status
%th.col-xs-2.col-sm-4 Pipeline %th Pipeline
%th.col-xs-2.col-sm-2 Stages %th Commit
%th.col-xs-2.col-sm-2 %th Stages
%th.hidden-xs.col-sm-3 %th
%th.hidden-xs
= render @pipelines, commit_sha: true, stage: true, allow_retry: true, stages: stages = render @pipelines, commit_sha: true, stage: true, allow_retry: true, stages: stages
= paginate @pipelines, theme: 'gitlab' = paginate @pipelines, theme: 'gitlab'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment