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

8 lines
748 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-10-27 15:23:28 +05:30
= button_tag class: 'js-confirm-rollback-modal-button gl-button btn btn-default btn-icon has-tooltip', type: 'button', data: { environment_name: @environment.name, commit_short_sha: deployment.short_sha, commit_url: project_commit_path(@project, deployment.sha), is_last_deployment: deployment.last?.to_s, retry_path: retry_project_job_path(@environment.project, deployment.deployable) }, title: tooltip do
2016-11-03 12:29:30 +05:30
- if deployment.last?
2021-03-11 19:13:27 +05:30
= sprite_icon('repeat', css_class: 'gl-icon')
2016-11-03 12:29:30 +05:30
- else
2021-03-11 19:13:27 +05:30
= sprite_icon('redo', css_class: 'gl-icon')