debian-mirror-gitlab/app/views/projects/deployments/_rollback.haml
2018-12-13 13:39:08 +05:30

7 lines
433 B
Text

- if can?(current_user, :create_deployment, deployment)
- 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')