ecd7e99a0a
Resolve "Build/Pipeline/Environment List Inconsistency Row Height" #### What does this MR do? * Changes generic table class from `builds` to `ci-table`. It was getting confusing using `builds` for `builds`, `pipelines`, `environments` * Sets height on builds rows for continuity #### Are there points in the code the reviewer needs to double check? Apparently you can't set `min-height` on any `table` elements but you _can_ set `height`. For some reason, even if the content within happens to start wrapping, the row height will grow instead of letting the content overlap. Which is a good thing. Just kind of weird. #### Why was this MR needed? Different row heights on builds depending on content #### Screenshots (if relevant) Before: ![Screen_Shot_2016-10-10_at_4.49.58_PM](/uploads/a4edb584f95c670f9815a8e5b1d725ee/Screen_Shot_2016-10-10_at_4.49.58_PM.png) After: ![Screen_Shot_2016-10-10_at_4.32.03_PM](/uploads/488a84b4ed292fbbb0ea7e372c017ae0/Screen_Shot_2016-10-10_at_4.32.03_PM.png) Before: ![Screen_Shot_2016-10-10_at_4.44.23_PM](/uploads/3cbcbada89d1aeb1fea35ea9b851e370/Screen_Shot_2016-10-10_at_4.44.23_PM.png) After: ![Screen_Shot_2016-10-10_at_4.42.56_PM](/uploads/0cb573670f60c7fdf54fdb027c95639f/Screen_Shot_2016-10-10_at_4.42.56_PM.png) ## What are the relevant issue numbers? Closes #23167 See merge request !6787
70 lines
2.9 KiB
Text
70 lines
2.9 KiB
Text
.pipeline-graph-container
|
|
.row-content-block.build-content.middle-block.pipeline-actions
|
|
.pull-right
|
|
.btn.btn-grouped.btn-white.toggle-pipeline-btn
|
|
%span.toggle-btn-text Hide
|
|
%span pipeline graph
|
|
%span.caret
|
|
- if can?(current_user, :update_pipeline, pipeline.project)
|
|
- if pipeline.builds.latest.failed.any?(&:retryable?)
|
|
= link_to "Retry failed", retry_namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline.id), class: 'btn btn-grouped btn-primary', method: :post
|
|
|
|
- if pipeline.builds.running_or_pending.any?
|
|
= link_to "Cancel running", cancel_namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline.id), data: { confirm: 'Are you sure?' }, class: 'btn btn-grouped btn-danger', method: :post
|
|
|
|
.oneline.clearfix
|
|
- if defined?(pipeline_details) && pipeline_details
|
|
Pipeline
|
|
= link_to "##{pipeline.id}", namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline.id), class: "monospace"
|
|
with
|
|
= pluralize pipeline.statuses.count(:id), "build"
|
|
- if pipeline.ref
|
|
for
|
|
= link_to pipeline.ref, namespace_project_commits_path(pipeline.project.namespace, pipeline.project, pipeline.ref), class: "monospace"
|
|
- if defined?(link_to_commit) && link_to_commit
|
|
for commit
|
|
= link_to pipeline.short_sha, namespace_project_commit_path(pipeline.project.namespace, pipeline.project, pipeline.sha), class: "monospace"
|
|
- if pipeline.duration
|
|
in
|
|
= time_interval_in_words pipeline.duration
|
|
|
|
.row-content-block.build-content.middle-block.pipeline-graph.hidden
|
|
.pipeline-visualization
|
|
%ul.stage-column-list
|
|
- stages = pipeline.stages_with_latest_statuses
|
|
- stages.each do |stage, statuses|
|
|
%li.stage-column
|
|
.stage-name
|
|
%a{name: stage}
|
|
- if stage
|
|
= stage.titleize
|
|
.builds-container
|
|
%ul
|
|
= render "projects/commit/pipeline_stage", statuses: statuses
|
|
|
|
|
|
- if pipeline.yaml_errors.present?
|
|
.bs-callout.bs-callout-danger
|
|
%h4 Found errors in your .gitlab-ci.yml:
|
|
%ul
|
|
- pipeline.yaml_errors.split(",").each do |error|
|
|
%li= error
|
|
You can also test your .gitlab-ci.yml in the #{link_to "Lint", ci_lint_path}
|
|
|
|
- if pipeline.project.builds_enabled? && !pipeline.ci_yaml_file
|
|
.bs-callout.bs-callout-warning
|
|
\.gitlab-ci.yml not found in this commit
|
|
|
|
.table-holder.pipeline-holder
|
|
%table.table.ci-table.pipeline
|
|
%thead
|
|
%tr
|
|
%th Status
|
|
%th Build ID
|
|
%th Name
|
|
%th
|
|
- if pipeline.project.build_coverage_enabled?
|
|
%th Coverage
|
|
%th
|
|
- pipeline.statuses.relevant.stages.each do |stage|
|
|
= render 'projects/commit/ci_stage', stage: stage, statuses: pipeline.statuses.relevant.where(stage: stage)
|