diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-10 09:00:00 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-11-10 16:38:00 -0600 |
commit | f47de1da6204f9ef727afaef8f12f2809608d52f (patch) | |
tree | 0d15f91f5377a4bbf1b336524cc625a4791d0345 /app/views/projects/ci/builds/_build.html.haml | |
parent | 942de35014e6b3b6d92a903e6fdc091e55e4008c (diff) | |
download | gitlab-ce-f47de1da6204f9ef727afaef8f12f2809608d52f.tar.gz |
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.haml | 18 |
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 |