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

9 lines
562 B
Text
Raw Normal View History

2019-12-21 20:55:43 +05:30
- if deployment.deployable && 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')
2021-01-03 14:25:43 +05:30
= button_tag class: 'btn gl-button btn-default btn-build has-tooltip', type: 'button', data: { toggle: 'modal', target: "#confirm-rollback-modal-#{deployment.id}" }, 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')
2019-07-07 11:18:12 +05:30
= render 'projects/deployments/confirm_rollback_modal', deployment: deployment