From 23f0e93d4b02ced8a010f8f74def0bf286fc6ae5 Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Fri, 23 Jan 2015 14:49:12 -0800 Subject: disable retry button for old builds --- app/views/builds/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/builds/show.html.haml') 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 -- cgit v1.2.1