Commit a265826e authored by Filipa Lacerda's avatar Filipa Lacerda

Adds rollback button

parent 667b71a4
- if can?(current_user, :create_deployment, @project)
%a.btn.btn-build{ "v-if" => "model.last_deployment && model.last_deployment.deployable",
":href" => "'#{namespace_project_builds_path(@project.namespace, @project)}/' + model.last_deployment.deployable.id + '/retry'",
"data-method" => "post",
"rel" => "nofollow" }
%span{ "v-if" => "model.last_deployment.last"}
Re-deploy
%span{ "v-if" => "!model.last_deployment.last"}
Rollback
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment