debian-mirror-gitlab/app/views/projects/deployments/_rollback.haml
2018-11-08 19:23:39 +05:30

6 lines
298 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")