the leave button is presented according to the value of can_leave_project