%li prevent their creation, if not already created, from everybody except Masters
%li prevent pushes from everybody except Masters
%li prevent <strong>anyone</strong> from force pushing to the branch
%li prevent <strong>anyone</strong> from deleting the branch
%p Read more about #{link_to"protected branches",help_page_path("user/project/protected_branches"),class: "underlined-link"} and #{link_to"project permissions",help_page_path("user/permissions"),class: "underlined-link"}.
=link_to'Unprotect',[@project.namespace.becomes(Namespace),@project,protected_branch],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :delete,class: 'btn btn-warning'
%li prevent their creation, if not already created, from everybody except Masters
%li prevent pushes from everybody except Masters
%li prevent <strong>anyone</strong> from force pushing to the branch
%li prevent <strong>anyone</strong> from deleting the branch
%p Read more about #{link_to"protected branches",help_page_path("user/project/protected_branches"),class: "underlined-link"} and #{link_to"project permissions",help_page_path("user/permissions"),class: "underlined-link"}.
=link_to'Unprotect',[@project.namespace.becomes(Namespace),@project,protected_branch],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :delete,class: 'btn btn-warning'