gitlab-org--gitlab-foss/app/views/projects/deployments/_rollback.haml
2018-07-10 08:11:04 +00:00

7 lines
458 B
Text

- if can?(current_user, :create_deployment, deployment) && deployment.deployable
- tooltip = deployment.last? ? s_('Environments|Re-deploy to environment') : s_('Environments|Rollback environment')
= link_to [:retry, @project.namespace.becomes(Namespace), @project, deployment.deployable], method: :post, class: 'btn btn-build has-tooltip', title: tooltip do
- if deployment.last?
= sprite_icon('repeat')
- else
= sprite_icon('redo')