diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-10 18:00:00 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-11-11 01:38:00 +0300 |
commit | f47de1da6204f9ef727afaef8f12f2809608d52f (patch) | |
tree | 0d15f91f5377a4bbf1b336524cc625a4791d0345 /app/views/projects/generic_commit_statuses | |
parent | 942de35014e6b3b6d92a903e6fdc091e55e4008c (diff) |
only display link to pipeline in generic build index, not on pipeline show
Diffstat (limited to 'app/views/projects/generic_commit_statuses')
-rw-r--r-- | app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml index 688cda384fb..c8ee96084fc 100644 --- a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml +++ b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml @@ -15,14 +15,15 @@ - if defined?(retried) && retried = icon('warning', class: 'text-warning has-tooltip', title: 'Status was retried.') - %td - = link_to pipeline_path(generic_commit_status.pipeline) do - %span.pipeline-id ##{generic_commit_status.pipeline.id} - %span by - - if generic_commit_status.pipeline.user - = user_avatar(user: generic_commit_status.pipeline.user, size: 20) - - else - %span.api.monospace API + - if defined?(pipeline_link) && pipeline_link + %td + = link_to pipeline_path(generic_commit_status.pipeline) do + %span.pipeline-id ##{generic_commit_status.pipeline.id} + %span by + - if generic_commit_status.pipeline.user + = user_avatar(user: generic_commit_status.pipeline.user, size: 20) + - else + %span.api.monospace API - if defined?(commit_sha) && commit_sha %td |