debian-mirror-gitlab/app/views/shared/deploy_tokens/_revoke_modal.html.haml

16 lines
955 B
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
.modal{ id: "revoke-modal-#{token.id}", tabindex: -1 }
2018-05-09 12:01:36 +05:30
.modal-dialog
.modal-content
.modal-header
2018-11-08 19:23:39 +05:30
%h4.modal-title
2020-04-08 14:13:33 +05:30
= s_('DeployTokens|Revoke %{b_start}%{name}%{b_end}?').html_safe % { b_start: '<b>'.html_safe, name: token.name, b_end: '</b>'.html_safe }
2018-11-08 19:23:39 +05:30
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
%span{ "aria-hidden": true } &times;
2018-05-09 12:01:36 +05:30
.modal-body
%p
2020-04-08 14:13:33 +05:30
= s_('DeployTokens|You are about to revoke %{b_start}%{name}%{b_end}.').html_safe % { b_start: '<b>'.html_safe, name: token.name, b_end: '</b>'.html_safe }
2018-05-09 12:01:36 +05:30
= s_('DeployTokens|This action cannot be undone.')
.modal-footer
%a{ href: '#', data: { dismiss: 'modal' }, class: 'btn btn-default' }= _('Cancel')
2020-04-08 14:13:33 +05:30
= link_to s_('DeployTokens|Revoke %{name}') % { name: token.name }, revoke_deploy_token_path(group_or_project, token), method: :put, class: 'btn btn-danger'