message="The branch could not be updated automatically because it has diverged from its upstream counterpart."
message=s_('Branches|The branch could not be updated automatically because it has diverged from its upstream counterpart.')
message<<"<br>To discard the local changes and overwrite the branch with the upstream version, delete it here and choose 'Update Now' above."ifcan?(current_user,:push_code,@project)
ifcan?(current_user,:push_code,@project)
message<<'<br>'
message<<s_("Branches|To discard the local changes and overwrite the branch with the upstream version, delete it here and choose 'Update Now' above.")
You’re about to permanently delete the protected branch
-branch_name=capturedo
=succeed'.'do
%strong.js-branch-name.ref-name>[branch name]
%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
%p.js-not-merged
-default_branch=capturedo
-default_branch=capturedo
%span.ref-name=@repository.root_ref
%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|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.")
=s_('Branches|To avoid data loss, consider merging this branch before deleting it.')
%p
%p
Once you confirm and press
-delete_protected_branch=capturedo
=succeed','do
%strong
%strong Delete protected branch
=s_('Branches|Delete protected branch')
it cannot be undone or recovered.
=s_('Branches|Once you confirm and press %{delete_protected_branch}, it cannot be undone or recovered.').html_safe%{delete_protected_branch: delete_protected_branch}
%p
%p
%strong To confirm, type
-branch_name_confirmation=capturedo
%kbd.js-branch-name [branch name]
%kbd.js-branch-name [branch name]
%strong
=s_('Branches|To confirm, type %{branch_name_confirmation}:').html_safe%{branch_name_confirmation: branch_name_confirmation}
=link_toproject_merged_branches_path(@project),class: 'btn btn-inverted btn-remove has-tooltip',title: "Delete all branches that are merged into '#{@project.repository.root_ref}'",method: :delete,data: {confirm: "Deleting the merged branches cannot be undone. Are you sure?",container: 'body'}do
=link_toproject_merged_branches_path(@project),
Delete merged branches
class: 'btn btn-inverted btn-remove has-tooltip',
title: s_("Branches|Delete all branches that are merged into '%{default_branch}'")%{default_branch: @project.repository.root_ref},
method: :delete,
data: {confirm: s_('Branches|Deleting the merged branches cannot be undone. Are you sure?'),