Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-10 18:00:00 +0300
committerMike Greiling <mike@pixelcog.com>2016-11-11 01:38:00 +0300
commitf47de1da6204f9ef727afaef8f12f2809608d52f (patch)
tree0d15f91f5377a4bbf1b336524cc625a4791d0345 /app/views/projects/ci/builds/_build.html.haml
parent942de35014e6b3b6d92a903e6fdc091e55e4008c (diff)
only display link to pipeline in generic build index, not on pipeline show
Diffstat (limited to 'app/views/projects/ci/builds/_build.html.haml')
-rw-r--r--app/views/projects/ci/builds/_build.html.haml18
1 files changed, 10 insertions, 8 deletions
diff --git a/app/views/projects/ci/builds/_build.html.haml b/app/views/projects/ci/builds/_build.html.haml
index 4f4612f6b80..28a040b4ac1 100644
--- a/app/views/projects/ci/builds/_build.html.haml
+++ b/app/views/projects/ci/builds/_build.html.haml
@@ -2,6 +2,7 @@
- ref = local_assigns.fetch(:ref, nil)
- commit_sha = local_assigns.fetch(:commit_sha, nil)
- retried = local_assigns.fetch(:retried, false)
+- pipeline_link = local_assigns.fetch(:pipeline_link, false)
- stage = local_assigns.fetch(:stage, false)
- coverage = local_assigns.fetch(:coverage, false)
- allow_retry = local_assigns.fetch(:allow_retry, false)
@@ -51,14 +52,15 @@
- if build.manual?
%span.label.label-info manual
- %td
- = link_to pipeline_path(build.pipeline) do
- %span.pipeline-id ##{build.pipeline.id}
- %span by
- - if build.pipeline.user
- = user_avatar(user: build.pipeline.user, size: 20)
- - else
- %span.api.monospace API
+ - if pipeline_link
+ %td
+ = link_to pipeline_path(build.pipeline) do
+ %span.pipeline-id ##{build.pipeline.id}
+ %span by
+ - if build.pipeline.user
+ = user_avatar(user: build.pipeline.user, size: 20)
+ - else
+ %span.api.monospace API
- if admin
%td