diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-28 14:05:32 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-30 11:06:19 +0200 |
commit | 94cec500c534ac8b35d7d7d9c807646faa800fec (patch) | |
tree | aef7be6221e64dd8d134dce495f6dae7c72e58a0 /app/views/projects/builds/_sidebar.html.haml | |
parent | 2efee5f6410f4e8e40e9b0339393de80f4affdde (diff) | |
download | gitlab-ce-94cec500c534ac8b35d7d7d9c807646faa800fec.tar.gz |
Do not show build retry link when build is active
Diffstat (limited to 'app/views/projects/builds/_sidebar.html.haml')
-rw-r--r-- | app/views/projects/builds/_sidebar.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/builds/_sidebar.html.haml b/app/views/projects/builds/_sidebar.html.haml index cab21f0cf19..a1dc79aaf5e 100644 --- a/app/views/projects/builds/_sidebar.html.haml +++ b/app/views/projects/builds/_sidebar.html.haml @@ -40,7 +40,7 @@ .block{ class: ("block-first" if !@build.coverage && !(can?(current_user, :read_build, @project) && (@build.artifacts? || @build.artifacts_expired?))) } .title Build details - - if @build.retryable? + - if @build.retryable? && !@build.active? = link_to "Retry", retry_namespace_project_build_path(@project.namespace, @project, @build), class: 'pull-right', method: :post - if @build.merge_request %p.build-detail-row |