diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 15:47:00 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 15:47:00 +0300 |
commit | 30877effb15d8a3eccc13925549a4c97de93c58e (patch) | |
tree | cfe0f24ada671e70acfdb3a2b236a2b2cd5bed3e /app/views/projects/deployments | |
parent | 6209b60c96d8b380ac184d83647c3c8b0b026cac (diff) |
Test environment controller specs
Diffstat (limited to 'app/views/projects/deployments')
-rw-r--r-- | app/views/projects/deployments/_deployment.html.haml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/deployments/_deployment.html.haml b/app/views/projects/deployments/_deployment.html.haml index 539c297cad3..1ac17af8b58 100644 --- a/app/views/projects/deployments/_deployment.html.haml +++ b/app/views/projects/deployments/_deployment.html.haml @@ -27,4 +27,8 @@ %td - if can?(current_user, :update_deployment, @project) && deployment.deployable .pull-right - = link_to 'Retry', retry_namespace_project_build_path(@project.namespace, @project, deployment.deployable), method: :post, class: 'btn btn-build' + = link_to retry_namespace_project_build_path(@project.namespace, @project, deployment.deployable), method: :post, class: 'btn btn-build' do + - if deployment.last? + Retry + - else + Rollback |