Commit f47de1da authored by Mike Greiling's avatar Mike Greiling

only display link to pipeline in generic build index, not on pipeline show

parent 942de350
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
%th Coverage %th Coverage
%th %th
= render partial: "projects/ci/builds/build", collection: builds, as: :build, locals: { commit_sha: true, ref: true, stage: true, allow_retry: true, coverage: admin || project.build_coverage_enabled?, admin: admin } = render partial: "projects/ci/builds/build", collection: builds, as: :build, locals: { commit_sha: true, ref: true, pipeline_link: true, stage: true, allow_retry: true, coverage: admin || project.build_coverage_enabled?, admin: admin }
= paginate builds, theme: 'gitlab' = paginate builds, theme: 'gitlab'
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
- ref = local_assigns.fetch(:ref, nil) - ref = local_assigns.fetch(:ref, nil)
- commit_sha = local_assigns.fetch(:commit_sha, nil) - commit_sha = local_assigns.fetch(:commit_sha, nil)
- retried = local_assigns.fetch(:retried, false) - retried = local_assigns.fetch(:retried, false)
- pipeline_link = local_assigns.fetch(:pipeline_link, false)
- stage = local_assigns.fetch(:stage, false) - stage = local_assigns.fetch(:stage, false)
- coverage = local_assigns.fetch(:coverage, false) - coverage = local_assigns.fetch(:coverage, false)
- allow_retry = local_assigns.fetch(:allow_retry, false) - allow_retry = local_assigns.fetch(:allow_retry, false)
...@@ -51,14 +52,15 @@ ...@@ -51,14 +52,15 @@
- if build.manual? - if build.manual?
%span.label.label-info manual %span.label.label-info manual
%td - if pipeline_link
= link_to pipeline_path(build.pipeline) do %td
%span.pipeline-id ##{build.pipeline.id} = link_to pipeline_path(build.pipeline) do
%span by %span.pipeline-id ##{build.pipeline.id}
- if build.pipeline.user %span by
= user_avatar(user: build.pipeline.user, size: 20) - if build.pipeline.user
- else = user_avatar(user: build.pipeline.user, size: 20)
%span.api.monospace API - else
%span.api.monospace API
- if admin - if admin
%td %td
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
- if stage - if stage
   
= stage.titleize = stage.titleize
= render statuses.latest_ci_stages, coverage: @project.build_coverage_enabled?, stage: false, ref: false, allow_retry: true = render statuses.latest_ci_stages, coverage: @project.build_coverage_enabled?, stage: false, ref: false, pipeline_link: false, allow_retry: true
= render statuses.retried_ci_stages, coverage: @project.build_coverage_enabled?, stage: false, ref: false, retried: true = render statuses.retried_ci_stages, coverage: @project.build_coverage_enabled?, stage: false, ref: false, pipeline_link: false, retried: true
%tr %tr
%td{colspan: 10} %td{colspan: 10}
   
...@@ -61,7 +61,6 @@ ...@@ -61,7 +61,6 @@
%tr %tr
%th Status %th Status
%th Build ID %th Build ID
%th Pipeline
%th Name %th Name
%th %th
- if pipeline.project.build_coverage_enabled? - if pipeline.project.build_coverage_enabled?
......
...@@ -15,14 +15,15 @@ ...@@ -15,14 +15,15 @@
- if defined?(retried) && retried - if defined?(retried) && retried
= icon('warning', class: 'text-warning has-tooltip', title: 'Status was retried.') = icon('warning', class: 'text-warning has-tooltip', title: 'Status was retried.')
%td - if defined?(pipeline_link) && pipeline_link
= link_to pipeline_path(generic_commit_status.pipeline) do %td
%span.pipeline-id ##{generic_commit_status.pipeline.id} = link_to pipeline_path(generic_commit_status.pipeline) do
%span by %span.pipeline-id ##{generic_commit_status.pipeline.id}
- if generic_commit_status.pipeline.user %span by
= user_avatar(user: generic_commit_status.pipeline.user, size: 20) - if generic_commit_status.pipeline.user
- else = user_avatar(user: generic_commit_status.pipeline.user, size: 20)
%span.api.monospace API - else
%span.api.monospace API
- if defined?(commit_sha) && commit_sha - if defined?(commit_sha) && commit_sha
%td %td
......
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