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

8 lines
433 B
Text
Raw Normal View History

2018-12-13 13:39:08 +05:30
- if can?(current_user, :create_deployment, deployment)
2018-11-18 11:00:15 +05:30
- tooltip = deployment.last? ? s_('Environments|Re-deploy to environment') : s_('Environments|Rollback environment')
2019-05-30 16:15:17 +05:30
= link_to [:retry, @project.namespace.becomes(Namespace), @project, deployment.deployable], method: :post, class: 'btn btn-build has-tooltip', title: tooltip do
2016-11-03 12:29:30 +05:30
- if deployment.last?
2018-11-18 11:00:15 +05:30
= sprite_icon('repeat')
2016-11-03 12:29:30 +05:30
- else
2018-11-18 11:00:15 +05:30
= sprite_icon('redo')