debian-mirror-gitlab/app/views/projects/deployments/_rollback.haml

7 lines
284 B
Text
Raw Normal View History

2016-11-03 12:29:30 +05:30
- 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