=link_to'Disable developers push',[@project,branch,{developers_can_push: false}],data: {confirm: 'Branch will be no longer writable for developers. Are you sure?'},method: :put,class: "btn btn-grouped btn-small"
-else
=link_to'Allow developers to push',[@project,branch,{developers_can_push: true}],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :put,class: "btn btn-grouped btn-small"
=link_to'Unprotect',[@project,branch],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :delete,class: "btn btn-remove btn-small"
=link_to'Unprotect',[@project,branch],data: {confirm: 'Branch will be writable for developers. Are you sure?'},method: :delete,class: "btn btn-remove btn-small"