summaryrefslogtreecommitdiff
path: root/app/views/builds/show.html.haml
diff options
context:
space:
mode:
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