summaryrefslogtreecommitdiff
path: root/app/views/shared/deploy_tokens/_revoke_modal.html.haml
blob: 5a3759ef7552176126f2a1ea3b62e0f62e20a403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.modal{ id: "revoke-modal-#{token.id}", tabindex: -1 }
  .modal-dialog
    .modal-content
      .modal-header
        %h4.modal-title
          = s_('DeployTokens|Revoke %{b_start}%{name}%{b_end}?').html_safe % { b_start: '<b>'.html_safe, name: token.name, b_end: '</b>'.html_safe }
        %button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
          %span{ "aria-hidden": true } &times;
      .modal-body
        %p
          = 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 }
          = s_('DeployTokens|This action cannot be undone.')
      .modal-footer
        %a{ href: '#', data: { dismiss: 'modal' }, class: 'btn btn-default' }= _('Cancel')
        = link_to s_('DeployTokens|Revoke %{name}') % { name: token.name }, revoke_deploy_token_path(group_or_project, token), method: :put, class: 'btn btn-danger'