2017-09-10 17:25:29 +05:30
#modal-delete-branch.modal{ tabindex: -1 }
.modal-dialog
.modal-content
.modal-header
%h3.page-title
2018-03-17 18:26:18 +05:30
- title_branch_name = capture do
%span.js-branch-name.ref-name>[branch name]
= s_("Branches|Delete protected branch '%{branch_name}'?").html_safe % { branch_name: title_branch_name }
2018-11-08 19:23:39 +05:30
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
%span{ "aria-hidden": true } ×
2017-09-10 17:25:29 +05:30
.modal-body
%p
2018-03-17 18:26:18 +05:30
- branch_name = capture do
%strong.js-branch-name.ref-name>[branch name]
= s_('Branches|You’ re about to permanently delete the protected branch %{branch_name}.').html_safe % { branch_name: branch_name }
%p.js-not-merged
- default_branch = capture do
%span.ref-name= @repository.root_ref
= s_('Branches|This branch hasn’ t been merged into %{default_branch}.').html_safe % { default_branch: default_branch }
= s_('Branches|To avoid data loss, consider merging this branch before deleting it.')
2017-09-10 17:25:29 +05:30
%p
2018-03-17 18:26:18 +05:30
- delete_protected_branch = capture do
%strong
= s_('Branches|Delete protected branch')
= s_('Branches|Once you confirm and press %{delete_protected_branch}, it cannot be undone or recovered.').html_safe % { delete_protected_branch: delete_protected_branch }
2017-09-10 17:25:29 +05:30
%p
2018-03-17 18:26:18 +05:30
- branch_name_confirmation = capture do
%kbd.js-branch-name [branch name]
%strong
= s_('Branches|To confirm, type %{branch_name_confirmation}:').html_safe % { branch_name_confirmation: branch_name_confirmation }
2017-09-10 17:25:29 +05:30
.form-group
= text_field_tag 'delete_branch_input', '', class: 'form-control js-delete-branch-input'
.modal-footer
%button.btn{ data: { dismiss: 'modal' } } Cancel
2018-03-17 18:26:18 +05:30
= link_to s_('Branches|Delete protected branch'), '',
2017-09-10 17:25:29 +05:30
class: "btn btn-danger js-delete-branch",
2018-03-17 18:26:18 +05:30
title: s_('Branches|Delete branch'),
2017-09-10 17:25:29 +05:30
method: :delete,
2018-03-17 18:26:18 +05:30
'aria-label' => s_('Branches|Delete branch')