=link_to'Unprotect',[@project.namespace.becomes(Namespace),@project,branch],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :delete,class: "btn btn-remove btn-sm"
-else
(branch was removed from repository)
%td
.pull-right
-ifcan?current_user,:admin_project,@project
=link_to'Unprotect',[@project.namespace.becomes(Namespace),@project,branch],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :delete,class: "btn btn-remove btn-sm"