=link_to'Unprotect',[@project.namespace.becomes(Namespace),@project,protected_branch],disabled: local_assigns[:disabled],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :delete,class: "btn btn-warning"
=link_to'Unprotect',[@project.namespace.becomes(Namespace),@project,protected_branch,{update_section: 'js-protected-branches-settings'}],disabled: local_assigns[:disabled],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :delete,class: "btn btn-warning"
=link_to'Unprotect',[@project.namespace.becomes(Namespace),@project,protected_tag],data: {confirm: 'Tag will be writable for developers. Are you sure?'},method: :delete,class: 'btn btn-warning'
=link_to'Unprotect',[@project.namespace.becomes(Namespace),@project,protected_tag,{update_section: 'js-protected-tags-settings'}],data: {confirm: 'Tag will be writable for developers. Are you sure?'},method: :delete,class: 'btn btn-warning'