debian-mirror-gitlab/app/views/projects/deployments/_rollback.haml
2016-11-03 12:29:30 +05:30

6 lines
284 B
Text

- if can?(current_user, :create_deployment, deployment) && deployment.deployable
= link_to [:retry, @project.namespace.becomes(Namespace), @project, deployment.deployable], method: :post, class: 'btn btn-build' do
- if deployment.last?
Re-deploy
- else
Rollback