summaryrefslogtreecommitdiff
path: root/app/views/builds/show.html.haml
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-01-23 14:49:12 -0800
committerValery Sizov <valery@gitlab.com>2015-01-23 14:55:47 -0800
commit23f0e93d4b02ced8a010f8f74def0bf286fc6ae5 (patch)
tree17d521fa3f43939e51e807357dce9c7af8cac46a /app/views/builds/show.html.haml
parent3540fb595542b690806d83412f93e2e651c029d4 (diff)
downloadgitlab-ci-23f0e93d4b02ced8a010f8f74def0bf286fc6ae5.tar.gz
disable retry button for old builds
Diffstat (limited to 'app/views/builds/show.html.haml')
-rw-r--r--app/views/builds/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/builds/show.html.haml b/app/views/builds/show.html.haml
index d1a0844..9d8a933 100644
--- a/app/views/builds/show.html.haml
+++ b/app/views/builds/show.html.haml
@@ -86,7 +86,7 @@
.pull-right
- if @build.active?
= link_to "Cancel", cancel_project_build_path(@project, @build), class: 'btn btn-sm btn-danger'
- - else
+ - elsif @build.commands.present?
= link_to "Retry", retry_project_build_path(@project, @build), class: 'btn btn-sm btn-primary', method: :post
- if @build.duration